List of usage examples for com.google.common.collect Sets immutableEnumSet
@GwtCompatible(serializable = true) public static <E extends Enum<E>> ImmutableSet<E> immutableEnumSet(E anElement, E... otherElements)
From source file:org.caleydo.view.domino.internal.Node.java
public Set<EDimension> dimensions() { boolean dim = has(EDimension.DIMENSION); boolean rec = has(EDimension.RECORD); if (dim && rec) return Sets.immutableEnumSet(EDimension.DIMENSION, EDimension.RECORD); if (dim && !rec) return Sets.immutableEnumSet(EDimension.DIMENSION); if (!dim && rec) return Sets.immutableEnumSet(EDimension.RECORD); return Collections.emptySet(); }