List of usage examples for com.google.common.collect ImmutableSet of
@SuppressWarnings("unchecked") public static <E> ImmutableSet<E> of(E e1, E e2)
From source file:hudson.plugins.depgraph_view.model.graph.Edge.java
public ImmutableSet<ProjectNode> getNodes() { return ImmutableSet.of(source, target); }
From source file:com.google.template.soy.jssrc.internal.VeLogFunction.java
@Override public Set<Integer> getValidArgsSizes() { return ImmutableSet.of(2, 3); }
From source file:dagger.internal.codegen.ProvidesMethodValidator.java
ProvidesMethodValidator(Elements elements, Types types) {
super(elements, types, Provides.class, ImmutableSet.of(Module.class, ProducerModule.class),
MUST_BE_CONCRETE, RUNTIME_EXCEPTION, ALLOWS_MULTIBINDINGS);
}
From source file:grakn.core.graql.gremlin.sets.IsaFragmentSet.java
@Override public final Set<Fragment> fragments() { return ImmutableSet.of(Fragments.outIsa(varProperty(), instance(), type()), Fragments.inIsa(varProperty(), type(), instance(), mayHaveEdgeInstances())); }
From source file:grakn.core.graql.gremlin.sets.SubFragmentSet.java
@Override public final Set<Fragment> fragments() { if (explicitSub()) { return ImmutableSet.of( Fragments.outSub(varProperty(), subConcept(), superConcept(), Fragments.TRAVERSE_ONE_SUB_EDGE), Fragments.inSub(varProperty(), superConcept(), subConcept(), Fragments.TRAVERSE_ONE_SUB_EDGE)); } else {/*from ww w . j av a 2 s .com*/ return ImmutableSet.of( Fragments.outSub(varProperty(), subConcept(), superConcept(), Fragments.TRAVERSE_ALL_SUB_EDGES), Fragments.inSub(varProperty(), superConcept(), subConcept(), Fragments.TRAVERSE_ALL_SUB_EDGES)); } }