java.lang.Object
org.seasar.doma.wrapper.AbstractWrapper<Boolean>
org.seasar.doma.wrapper.BooleanWrapper
org.seasar.doma.wrapper.PrimitiveBooleanWrapper
A wrapper for the
boolean class.-
Field Summary
Fields inherited from class org.seasar.doma.wrapper.AbstractWrapper
basicClass, value -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<R,P, Q, TH extends Throwable>
Raccept(WrapperVisitor<R, P, Q, TH> visitor, P p, Q q) Accept a visitor.protected voidReturns the default value.booleanWhether this object is a wrapper for a primitive type.Methods inherited from class org.seasar.doma.wrapper.AbstractWrapper
doGet, doGetCopy, doHasEqualValue, get, getBasicClass, getCopy, hasEqualValue, set, toString
-
Constructor Details
-
PrimitiveBooleanWrapper
public PrimitiveBooleanWrapper() -
PrimitiveBooleanWrapper
public PrimitiveBooleanWrapper(boolean value)
-
-
Method Details
-
getDefault
Description copied from interface:WrapperReturns the default value.- Specified by:
getDefaultin interfaceWrapper<Boolean>- Overrides:
getDefaultin classAbstractWrapper<Boolean>- Returns:
- the boxed default value of a primitive type if this is a wrapper for a boxed type, else
null
-
doSet
- Overrides:
doSetin classAbstractWrapper<Boolean>
-
isPrimitiveWrapper
public boolean isPrimitiveWrapper()Description copied from interface:WrapperWhether this object is a wrapper for a primitive type.- Returns:
trueif this object is a wrapper for a primitive type.
-
accept
public <R,P, R acceptQ, TH extends Throwable> (WrapperVisitor<R, P, throws THQ, TH> visitor, P p, Q q) Description copied from interface:WrapperAccept a visitor.- Specified by:
acceptin interfaceWrapper<Boolean>- Overrides:
acceptin classBooleanWrapper- Type Parameters:
R- The resultP- The first parameter typeQ- The second parameter typeTH- The error or exception type- Parameters:
visitor- the visitorp- the first parameterq- the second parameter- Returns:
- the result
- Throws:
TH- the error or exception type
-