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

static <E> Set<E> of(E e1, E e2, E e3, E e4, E e5, E e6, E e7, E e8) 

Source Link

Document

Returns an unmodifiable set containing eight elements.

Usage

From source file:com.facebook.buck.apple.AppleXCodeDescriptionClassSupplier.java

@Override
public Collection<Class<? extends BaseDescription<?>>> getXCodeDescriptions() {
    return ImmutableSet.of(AppleLibraryDescription.class, CxxLibraryDescription.class,
            AppleBinaryDescription.class, AppleBundleDescription.class, AppleTestDescription.class,
            SwiftLibraryDescription.class, PrebuiltAppleFrameworkDescription.class,
            PrebuiltCxxLibraryDescription.class);
}

From source file:org.jclouds.cleanup.data.Field.java

public boolean isPrimative() {
    return ImmutableSet.of("byte", "short", "int", "long", "float", "double", "char", "boolean")
            .contains(getSimpleType());//from w  ww. ja v  a2 s .  com
}

From source file:org.atlasapi.persistence.content.query.QueryConcernsTypeDecider.java

@SuppressWarnings("unchecked")
public static boolean concernsBrandOrBelow(final ContentQuery query) {
    return concernsType(query, ImmutableSet.of(Brand.class, Container.class, Item.class, Episode.class,
            Version.class, Location.class, Broadcast.class, Encoding.class));
}

From source file:com.google.protoeditor.validation.FileOptionStatementAnnotator.java

public FileOptionStatementAnnotator() {
    recognizedOptions = ImmutableSet.of("java_multiple_files", "java_outer_classname", "optimize_for",
            "java_package", "java_generate_and_equals_hash", "cc_generic_services", "java_generic_services",
            "py_generic_services");

    booleanOptions = ImmutableSet.of("java_multiple_files", "java_generate_and_equals_hash",
            "cc_generic_services", "java_generic_services", "py_generic_services");
}

From source file:org.jclouds.greenqloud.compute.suppliers.GreenQloudEC2HardwareSupplier.java

@Override
public Set<? extends Hardware> get() {
    return ImmutableSet.of(t1_nano().build(), t1_micro().build(), t1_milli().build(), m1_small().build(),
            m1_medium().build(), m1_large().build(), m1_xlarge().build(), m2_2xlarge().build());
}