BASIC - The basic typepublic interface Wrapper<BASIC>
The implementation instance is not required to be thread safe.
| 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.
|
BASIC |
get()
Returns the value.
|
java.lang.Class<BASIC> |
getBasicClass()
Returns the class of the basic type.
|
BASIC |
getCopy()
Return a copy of the value.
|
BASIC |
getDefault()
Returns the default value.
|
boolean |
hasEqualValue(java.lang.Object other)
Whether this object has an equal value to the other one.
|
default boolean |
isPrimitiveWrapper()
Whether this object is a wrapper for a primitive type.
|
void |
set(BASIC value)
Sets the value.
|
BASIC get()
The value may be null.
void set(BASIC value)
value - the valueBASIC getCopy()
BASIC getDefault()
nullboolean hasEqualValue(java.lang.Object other)
other - the other objecttrue if this object has an equal value to the other one.java.lang.Class<BASIC> getBasicClass()
default boolean isPrimitiveWrapper()
true if this object is a wrapper for a primitive type.<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
R - 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 typeDomaNullPointerException - if visitor is nullTH extends java.lang.Throwable