Example usage for com.google.common.collect Iterables unmodifiableIterable

List of usage examples for com.google.common.collect Iterables unmodifiableIterable

Introduction

In this page you can find the example usage for com.google.common.collect Iterables unmodifiableIterable.

Prototype

@Deprecated
public static <E> Iterable<E> unmodifiableIterable(ImmutableCollection<E> iterable) 

Source Link

Document

Simply returns its argument.

Usage

From source file:co.cask.tigon.internal.app.runtime.AbstractDataFabricFacade.java

@Override
public TransactionContext createTransactionManager() {
    return new TransactionContext(txSystemClient, Iterables.unmodifiableIterable(txAware));
}

From source file:org.eclipse.osee.cache.admin.internal.LoadingCacheProxy.java

@Override
public Iterable<? extends K> getAllKeysPresent() {
    return Iterables.unmodifiableIterable(proxied.asMap().keySet());
}

From source file:fr.putnami.pwt.core.theme.client.Theme.java

/**
 * Gets the links of the Theme. the links are wrapped in an unmodifiable Iterable.
 *
 * @return the links/*from w w  w. j  a  v a  2s . co  m*/
 */
public Iterable<CssLink> getLinks() {
    return Iterables.unmodifiableIterable(this.links);
}

From source file:fr.putnami.pwt.plugin.code.client.base.CodeEditorDriverImpl.java

public Iterable<Error> getErrors() {
    return this.errors == null ? Collections.<Error>emptyList() : Iterables.unmodifiableIterable(this.errors);
}

From source file:edu.umn.msi.tropix.common.concurrent.impl.CachedIterableImpl.java

@Override
protected Iterable<T> getInstance() {
    final LinkedList<T> cachedList = new LinkedList<T>();
    for (final T object : this.baseIterable) {
        cachedList.add(object);/*from  w  ww.j a v  a 2s  . c  o  m*/
    }
    return Iterables.unmodifiableIterable(cachedList);
}

From source file:com.facebook.buck.rules.BuildRuleResolver.java

/**
 * @return an unmodifiable view of the rules in the index
 *//*  w  w  w. j a  v a2  s  .c  o m*/
public Iterable<BuildRule> getBuildRules() {
    return Iterables.unmodifiableIterable(buildRuleIndex.values());
}

From source file:org.ow2.mind.plugin.PluginImpl.java

public Iterable<ExtensionPoint> getExtensionPoints() {
    return Iterables.unmodifiableIterable(extensionPoints);
}

From source file:ru.rulex.matchers.Rulex.java

@Override
public RulexAnalyzer in(final Iterable<T> iterable) {
    this.iterator = Iterables.unmodifiableIterable(iterable);
    this.filterMatcher = toStatefulMatcher(filterMatcher);
    this.assertionMatcher = toStatefulMatcher(assertionMatcher);

    return this;
}

From source file:org.opendaylight.controller.md.sal.dom.store.impl.tree.StoreMetadataNode.java

public Iterable<StoreMetadataNode> getChildren() {
    return Iterables.unmodifiableIterable(children.values());
}

From source file:edu.oregonstate.eecs.mcplan.search.pats.BoundedStateNode.java

public Iterable<BoundedActionNode<S, A>> successors() {
    return Iterables.unmodifiableIterable(successors);
}