List of usage examples for com.google.common.collect Iterables concat
public static <T> Iterable<T> concat(Iterable<? extends T> a, Iterable<? extends T> b)
From source file:com.temenos.ds.op.xtext.generator.ui.MultiGeneratorsProvider.java
@Override public Iterable<GeneratorIdPair> getGenerators(IProject project) { Iterable<GeneratorIdPair> iterable = Iterables.concat(pluginsGeneratorsProvider.getGenerators(project), runtimeJDTGeneratorsProvider.getGenerators(project)); // Iterable<GeneratorIdPair> iterable = Collections.emptyList(); // for (IGeneratorsProvider generatorsProvider : delegates) { // iterable = Iterables.concat(iterable, generatorsProvider.getGenerators(resource)); // }/*from w ww . ja v a 2 s . c o m*/ return iterable; }
From source file:com.facebook.buck.jvm.java.ConfiguredCompiler.java
default BuildRuleParams addInputs(BuildRuleParams params, SourcePathRuleFinder ruleFinder) { return params .withDeclaredDeps(() -> ImmutableSortedSet .copyOf(Iterables.concat(params.getDeclaredDeps().get(), getDeclaredDeps(ruleFinder)))) .withExtraDeps(() -> ImmutableSortedSet .copyOf(Iterables.concat(params.getExtraDeps().get(), getExtraDeps(ruleFinder)))); }
From source file:com.mycila.inject.jsr250.Jsr250.java
public static Jsr250Injector createInjector(Stage stage, Iterable<? extends Module> modules) { DestroyModule destroyModule = new DestroyModule(); modules = Iterables.concat(Arrays.asList(destroyModule), modules); try {//from w w w . j a v a 2s . c o m return Guice.createInjector(stage, Iterables.concat(modules, Arrays.asList(new Jsr250Module()))) .getInstance(Jsr250Injector.class); } catch (RuntimeException e) { destroyModule.destroy(); throw e; } }
From source file:org.apache.drill.exec.server.options.FallbackOptionManager.java
@Override public Iterator<OptionValue> iterator() { return Iterables.concat(fallback, optionIterable()).iterator(); }
From source file:com.davidbracewell.wordnet.SynsetPathWalker.java
@Override public Synset next() { Synset toReturn = synset;//from ww w. j a va 2 s . c o m seen.add(toReturn.toString()); synset = Iterables.getFirst(Iterables.concat(synset.getRelatedSynsets(Relation.HYPERNYM), synset.getRelatedSynsets(Relation.HYPERNYM_INSTANCE)), null); if (synset != null && seen.contains(synset.toString())) { synset = null; } return toReturn; }
From source file:com.spotify.heroic.metric.ResultLimits.java
public ResultLimits join(final ResultLimits other) { return new ResultLimits(ImmutableSet.copyOf(Iterables.concat(limits, other.limits))); }
From source file:org.lbogdanov.poker.web.page.PageScriptResourceReference.java
/** * {@inheritDoc}/*from w w w . j a va2s . c o m*/ */ @Override public Iterable<? extends HeaderItem> getDependencies() { return Iterables.concat(super.getDependencies(), Collections.singletonList(JavaScriptHeaderItem.forReference(Bootstrap.plain()))); }
From source file:org.apache.drill.exec.server.options.QueryOptionManager.java
@Override public Iterator<OptionValue> iterator() { return Iterables.concat(sessionOptions, options.values()).iterator(); }
From source file:ratpack.registry.internal.HierarchicalRegistry.java
@Override public <O> Iterable<? extends O> getAll(TypeToken<O> type) { Iterable<? extends O> childAll = child.getAll(type); Iterable<? extends O> parentAll = parent.getAll(type); return Iterables.concat(childAll, parentAll); }
From source file:com.kurtraschke.wmata.gtfsrealtime.api.routeschedule.RouteSchedule.java
public Iterable<WMATATrip> getTrips() { return Iterables.concat((direction0 != null) ? direction0 : Collections.<WMATATrip>emptyList(), (direction1 != null) ? direction1 : Collections.<WMATATrip>emptyList()); }