E - The enum type subclasspublic class EnumWrapper<E extends java.lang.Enum<E>> extends AbstractWrapper<E>
Enum class.basicClass, value| Constructor and Description |
|---|
EnumWrapper(java.lang.Class<E> enumClass)
Creates an instance.
|
EnumWrapper(java.lang.Class<E> enumClass,
E value)
Creates an instance with a value.
|
| Modifier and Type | Method and Description |
|---|---|
<R,P,Q,TH extends java.lang.Throwable> |
accept(WrapperVisitor<R,P,Q,TH> visitor,
P p,
Q q)
Accept a visitor.
|
doGet, doGetCopy, doHasEqualValue, doSet, get, getBasicClass, getCopy, getDefault, hasEqualValue, set, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisPrimitiveWrapperpublic EnumWrapper(java.lang.Class<E> enumClass)
enumClass - the Enum classDomaNullPointerException - if the enumClass is nullpublic EnumWrapper(java.lang.Class<E> enumClass, E value)
enumClass - the Enum classvalue - the enum valueDomaNullPointerException - if the enumClass is nullpublic <R,P,Q,TH extends java.lang.Throwable> R accept(WrapperVisitor<R,P,Q,TH> visitor, P p, Q q) throws TH extends java.lang.Throwable
WrapperR - The resultP - The first parameter typeQ - The second parameter typeTH - The error or exception typevisitor - the visitorp - the first parameterq - the second parameterTH - the error or exception typeTH extends java.lang.Throwable