List of usage examples for com.google.common.collect ImmutableSet of
public static <E> ImmutableSet<E> of(E element)
From source file:io.mindmaps.graql.internal.query.predicate.EqPredicate.java
/** * @param value the value that this predicate is testing against */ EqPredicate(Object value) { super(ImmutableSet.of(value)); this.value = value; }
From source file:buildcraft.api.recipes.AssemblyRecipeBasic.java
public AssemblyRecipeBasic(ResourceLocation name, long requiredMicroJoules, ImmutableSet<IngredientStack> requiredStacks, @Nonnull ItemStack output) { this.requiredMicroJoules = requiredMicroJoules; this.requiredStacks = ImmutableSet.copyOf(requiredStacks); this.output = ImmutableSet.of(output); setRegistryName(name);/* w ww . j a va 2s. c o m*/ }
From source file:org.gradle.initialization.DefaultGradleApiSpecProvider.java
@Override public Set<String> getExportedResourcePrefixes() { return ImmutableSet.of("META-INF/gradle-plugins"); }
From source file:org.elasticsearch.common.inject.internal.SourceProvider.java
public SourceProvider() { this.classNamesToSkip = ImmutableSet.of(SourceProvider.class.getName()); }
From source file:com.facebook.buck.graph.AbstractBreadthFirstThrowingTraversal.java
public AbstractBreadthFirstThrowingTraversal(Node initialNode) { this(ImmutableSet.of(initialNode)); }
From source file:com.google.gerrit.server.account.AccountsUpdate.java
/** * Inserts a new account./*from w w w.j a v a 2s. c o m*/ * * @throws OrmDuplicateKeyException if the account already exists */ public void insert(ReviewDb db, Account account) throws OrmException { db.accounts().insert(ImmutableSet.of(account)); }
From source file:com.github.benmanes.caffeine.cache.simulator.policy.product.Ehcache2Policy.java
/** Returns all variations of this policy based on the configuration parameters. */ public static Set<Policy> policies(Config config) { return ImmutableSet.of(new Ehcache2Policy(config)); }
From source file:org.apache.hadoop.hive.serde2.CustomTextStorageFormatDescriptor.java
@Override public Set<String> getNames() { return ImmutableSet.of(IOConstants.CUSTOM_TEXT_SERDE); }
From source file:grakn.core.graql.reasoner.cache.Index.java
private Index(Variable var) { this.vars = ImmutableSet.of(var); }
From source file:com.github.benmanes.caffeine.cache.simulator.policy.product.InfinispanPolicy.java
/** Returns all variations of this policy based on the configuration parameters. */ public static Set<Policy> policies(Config config) { return ImmutableSet.of(new InfinispanPolicy(config)); }