List of usage examples for com.google.common.collect Iterables unmodifiableIterable
@Deprecated public static <E> Iterable<E> unmodifiableIterable(ImmutableCollection<E> iterable)
From source file:fr.putnami.pwt.core.widget.client.TableEditorTH.java
@Override public Iterable<Editor> getEditors() { return Iterables.unmodifiableIterable((Collection) this.aspects); }
From source file:com.mapr.franz.server.ClusterState.java
public Iterable<Catcher.Server> getCluster() { return Iterables.unmodifiableIterable(servers.values()); }
From source file:org.apache.druid.query.ChainedExecutionQueryRunner.java
public ChainedExecutionQueryRunner(ExecutorService exec, QueryWatcher queryWatcher, Iterable<QueryRunner<T>> queryables) { // listeningDecorator will leave PrioritizedExecutorService unchanged, // since it already implements ListeningExecutorService this.exec = MoreExecutors.listeningDecorator(exec); this.queryables = Iterables.unmodifiableIterable(queryables); this.queryWatcher = queryWatcher; }
From source file:fr.putnami.pwt.core.widget.client.base.AbstractHTMLPanel.java
@Override public Iterable<Editor> getEditors() { return this.editorChildren == null ? Collections.<Editor>emptySet() : Iterables.unmodifiableIterable(this.editorChildren); }
From source file:cubicchunks.network.PacketCube.java
public Iterable<NBTTagCompound> getTileEntityTags() { return Iterables.unmodifiableIterable(this.tileEntityTags); }
From source file:edu.oregonstate.eecs.mcplan.search.pats.PatsActionNode.java
public Iterable<PatsStateNode<S, A>> successors() { return Iterables.unmodifiableIterable(successors.values()); }
From source file:org.movsim.simulator.roadnetwork.controller.RoadObjects.java
@SuppressWarnings("unchecked") public <T extends RoadObject> Iterable<T> values(RoadObjectType type) { return Iterables.unmodifiableIterable((Iterable<T>) roadObjects.get(type)); }
From source file:co.cask.cdap.data.dataset.DatasetInstantiator.java
/** * Returns an immutable life Iterable of {@link TransactionAware} objects. *//*from www.j av a2s . c om*/ public Iterable<TransactionAware> getTransactionAware() { return Iterables.unmodifiableIterable(txAware); }
From source file:com.palantir.common.collect.IterableView.java
public IterableView<T> unmodifiableIterable() { return of(Iterables.unmodifiableIterable(delegate())); }
From source file:org.elasticsearch.common.collect.UpdateInPlaceMap.java
/** * Returns all the values in the map, on going mutator changes might or might not be reflected * in the values./*from www . j a v a 2 s. co m*/ */ public Iterable<V> values() { return new Iterable<V>() { @Override public Iterator<V> iterator() { final ImmutableOpenMap<K, V> immutableMap = UpdateInPlaceMap.this.immutableMap; final ConcurrentMap<K, V> concurrentMap = UpdateInPlaceMap.this.concurrentMap; if (immutableMap != null) { return immutableMap.valuesIt(); } else { return Iterables.unmodifiableIterable(concurrentMap.values()).iterator(); } } }; }