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:ru.rulex.matchers.Rulex.java

@Override
public RulexAnalyzer on(final T item) {
    this.iterator = Iterables.unmodifiableIterable(Arrays.asList(item));
    return this;
}

From source file:com.arpnetworking.clusteraggregator.models.StatusResponse.java

@JsonSerialize(contentUsing = MemberSerializer.class)
public Iterable<Member> getMembers() {
    return Iterables.unmodifiableIterable(_members);
}

From source file:org.apache.beam.runners.core.metrics.MetricsMap.java

/**
 * Return an iterable over the entries in the current {@link  MetricsMap}.
 *///  w  ww. ja  v a  2  s .  c om
public Iterable<Map.Entry<K, T>> entries() {
    return Iterables.unmodifiableIterable(metrics.entrySet());
}

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

public Iterable<ConfigurationElement> getConfigurationElements() {
    return Iterables.unmodifiableIterable(configurationElements);
}

From source file:io.druid.query.GroupByParallelQueryRunner.java

public GroupByParallelQueryRunner(ExecutorService exec, Supplier<GroupByQueryConfig> configSupplier,
        QueryWatcher queryWatcher, StupidPool<ByteBuffer> bufferPool, Iterable<QueryRunner<T>> queryables) {
    this.exec = MoreExecutors.listeningDecorator(exec);
    this.queryWatcher = queryWatcher;
    this.queryables = Iterables.unmodifiableIterable(Iterables.filter(queryables, Predicates.notNull()));
    this.configSupplier = configSupplier;
    this.bufferPool = bufferPool;
}

From source file:org.apache.beam.runners.core.metrics.MetricsMap.java

/**
 * Return an iterable over the values in the current {@link MetricsMap}.
 */
public Iterable<T> values() {
    return Iterables.unmodifiableIterable(metrics.values());
}

From source file:com.metamx.druid.query.ChainedExecutionQueryRunner.java

public ChainedExecutionQueryRunner(ExecutorService exec, Ordering<T> ordering,
        Iterable<QueryRunner<T>> queryables) {
    this.exec = exec;
    this.ordering = ordering;
    this.queryables = Iterables.unmodifiableIterable(Iterables.filter(queryables, Predicates.notNull()));
}

From source file:org.opendaylight.protocol.concepts.MultiRegistry.java

public Iterable<V> getAllValues() {
    return Iterables.unmodifiableIterable(this.current.values());
}

From source file:com.facebook.buck.core.rules.resolver.impl.SingleThreadedActionGraphBuilder.java

@Override
public Iterable<BuildRule> getBuildRules() {
    Preconditions.checkState(isValid);
    return Iterables.unmodifiableIterable(buildRuleIndex.values());
}

From source file:io.druid.query.GroupByMergedQueryRunner.java

public GroupByMergedQueryRunner(ExecutorService exec, Supplier<GroupByQueryConfig> configSupplier,
        QueryWatcher queryWatcher, StupidPool<ByteBuffer> bufferPool, Iterable<QueryRunner<T>> queryables) {
    this.exec = MoreExecutors.listeningDecorator(exec);
    this.queryWatcher = queryWatcher;
    this.queryables = Iterables.unmodifiableIterable(Iterables.filter(queryables, Predicates.notNull()));
    this.configSupplier = configSupplier;
    this.bufferPool = bufferPool;
}