Class EnumUtil

java.lang.Object
org.infinispan.commons.util.EnumUtil

public class EnumUtil extends Object
Utilities method to Enums.
Since:
8.2
Author:
Pedro Ruivo
  • Field Details

  • Method Details

    • bitSetOf

      public static <E extends Enum<E>> long bitSetOf(Collection<E> enums)
    • bitSetOf

      public static long bitSetOf(Enum<?> first)
    • bitSetOf

      public static long bitSetOf(Enum<?> first, Enum<?> second)
    • bitSetOf

      public static long bitSetOf(Enum<?> first, Enum<?> second, Enum<?>... remaining)
    • bitSetOf

      public static long bitSetOf(Enum<?>[] flags)
    • enumSetOf

      public static <E extends Enum<E>> EnumSet<E> enumSetOf(long bitSet, Class<E> eClass)
    • hasEnum

      public static boolean hasEnum(long bitSet, Enum<?> anEnum)
    • setEnum

      public static long setEnum(long bitSet, Enum<?> anEnum)
    • setEnums

      public static <E extends Enum<E>> long setEnums(long bitSet, Collection<E> enums)
    • unsetEnum

      public static long unsetEnum(long bitSet, Enum<?> anEnum)
    • prettyPrintBitSet

      public static <E extends Enum<E>> String prettyPrintBitSet(long bitSet, Class<E> eClass)
    • mergeBitSets

      public static long mergeBitSets(long bitSet1, long bitSet2)
    • diffBitSets

      public static long diffBitSets(long bitSet1, long bitSet2)
    • containsAll

      public static boolean containsAll(long bitSet, long testBitSet)
    • containsAny

      public static boolean containsAny(long bitSet, long testBitSet)
    • noneOf

      public static boolean noneOf(long bitSet, long testBitSet)
    • bitSetSize

      public static int bitSetSize(long bitSet)
    • enumArrayOf

      public static <E extends Enum<E>> E[] enumArrayOf(long bitSet, Class<E> eClass)