public final class EnumerationUtil
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
private |
EnumerationUtil()
Prevent creation of instances of this utility class.
|
Modifier and Type | Method and Description |
---|---|
static <E extends java.lang.Enum<E>> |
contains(java.lang.Class<E> enumeration,
java.lang.String test)
Checks whether a an enumeration contains a certain value or not.
|
private EnumerationUtil()
public static <E extends java.lang.Enum<E>> boolean contains(java.lang.Class<E> enumeration, java.lang.String test)
E
- The enumeration class type.enumeration
- The certain enumeration class which could be viewed as haystack.test
- The value which shall be checked as String
and could be viewed as needle.true
if the needle is part of the haystack, otherwise false