public class MoreThan64ElementsException extends RuntimeException
It is recommended that a static block with an assertion is included to any enum type that is not indented to contain more than 64 elements:
public static enum Suit implements EnumBitSetHelper<Suit> {
CLUBS, DIAMONDS, HEARTS, SPADES;
static {
assert values().length <= 64 : "This enum type is not indented to contain more than 64 constants.";
}
}
Modifier and Type | Method and Description |
---|---|
Class<?> |
getType() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public Class<?> getType()