Package org.infinispan.commons.util
Class EnumUtil
java.lang.Object
org.infinispan.commons.util.EnumUtil
Utilities method to Enums.
- Since:
- 8.2
- Author:
- Pedro Ruivo
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic long
static long
static long
static long
static <E extends Enum<E>>
longbitSetOf
(Collection<E> enums) static int
bitSetSize
(long bitSet) static boolean
containsAll
(long bitSet, long testBitSet) static boolean
containsAny
(long bitSet, long testBitSet) static long
diffBitSets
(long bitSet1, long bitSet2) static <E extends Enum<E>>
E[]enumArrayOf
(long bitSet, Class<E> eClass) static boolean
static long
mergeBitSets
(long bitSet1, long bitSet2) static boolean
noneOf
(long bitSet, long testBitSet) prettyPrintBitSet
(long bitSet, Class<E> eClass) static long
static <E extends Enum<E>>
longsetEnums
(long bitSet, Collection<E> enums) static long
-
Field Details
-
EMPTY_BIT_SET
public static final long EMPTY_BIT_SET- See Also:
-
-
Method Details
-
bitSetOf
-
bitSetOf
-
bitSetOf
-
bitSetOf
-
bitSetOf
-
enumSetOf
-
hasEnum
-
setEnum
-
setEnums
-
unsetEnum
-
prettyPrintBitSet
-
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
-