Example usage for com.google.common.collect ImmutableSet of

List of usage examples for com.google.common.collect ImmutableSet of

Introduction

In this page you can find the example usage for com.google.common.collect ImmutableSet of.

Prototype

public static <E> ImmutableSet<E> of(E element) 

Source Link

Usage

From source file:org.apache.hadoop.hive.ql.io.RCFileStorageFormatDescriptor.java

@Override
public Set<String> getNames() {
    return ImmutableSet.of(IOConstants.RCFILE);
}

From source file:org.apache.hadoop.hive.ql.io.TextFileStorageFormatDescriptor.java

@Override
public Set<String> getNames() {
    return ImmutableSet.of(IOConstants.TEXTFILE);
}

From source file:com.nesscomputing.jdbc.wrappers.CreateArrayOfWrapper.java

public CreateArrayOfWrapper() throws NoSuchMethodException {
    super(ImmutableSet
            .of(Connection.class.getMethod("createArrayOf", new Class<?>[] { String.class, Object[].class })));
}

From source file:com.facebook.buck.artifact_cache.HttpArtifactCacheEvent.java

public static Started newFetchStartedEvent(RuleKey ruleKey) {
    return new Started(ArtifactCacheEvent.Operation.FETCH, ImmutableSet.of(ruleKey));
}

From source file:concretisations.checkers.pieces.Man.java

public Man(final SideInterface side, final PieceTypeInterface type) {
    super(side, type, ImmutableSet.of(side.isFirstSide() ? NamedDirection.TOP : NamedDirection.BOTTOM));
}

From source file:dagger.internal.codegen.MultibindingsMethodValidator.java

MultibindingsMethodValidator(Elements elements, Types types) {
    super(elements, types, Multibindings.class, ImmutableSet.of(Multibindings.class));
}

From source file:com.github.benmanes.caffeine.cache.simulator.policy.product.TCachePolicy.java

/** Returns all variations of this policy based on the configuration parameters. */
public static Set<Policy> policies(Config config) {
    return ImmutableSet.of(new TCachePolicy(config));
}

From source file:io.prestosql.plugin.mongodb.MongoPlugin.java

@Override
public Set<Class<?>> getFunctions() {
    return ImmutableSet.of(ObjectIdFunctions.class);
}

From source file:com.github.benmanes.caffeine.cache.simulator.policy.sketch.tinycache.WindowTinyCachePolicy.java

/** Returns all variations of this policy based on the configuration parameters. */
public static Set<Policy> policies(Config config) {
    return ImmutableSet.of(new WindowTinyCachePolicy(config));
}

From source file:com.github.imasahiro.stringformatter.processor.specifier.CharacterFormatConversionType.java

@Override
public Set<TypeMirror> getType(Types typeUtil, Elements elementUtil) {
    return ImmutableSet.of(typeUtil.getPrimitiveType(TypeKind.CHAR));
}