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

@SuppressWarnings("unchecked")
    public static <E> ImmutableSet<E> of(E e1, E e2, E e3, E e4, E e5) 

Source Link

Usage

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

public static boolean concernsVersionOrBelow(final ContentQuery query) {
    return concernsType(query,
            ImmutableSet.of(Version.class, Location.class, Broadcast.class, Encoding.class, Policy.class));
}

From source file:io.prestosql.sql.planner.iterative.rule.DesugarLambdaExpression.java

@Override
public Set<Rule<?>> rules() {
    return ImmutableSet.of(projectExpressionRewrite(), aggregationExpressionRewrite(),
            filterExpressionRewrite(), joinExpressionRewrite(), valuesExpressionRewrite());
}