java.lang.Object
org.seasar.doma.wrapper.AbstractWrapper<Double>
org.seasar.doma.wrapper.DoubleWrapper
org.seasar.doma.wrapper.PrimitiveDoubleWrapper
- All Implemented Interfaces:
NumberWrapper<Double>,Wrapper<Double>
A wrapper for the
double 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.voidSets the value.Methods inherited from class org.seasar.doma.wrapper.DoubleWrapper
decrement, incrementMethods inherited from class org.seasar.doma.wrapper.AbstractWrapper
doGet, doGetCopy, doHasEqualValue, get, getBasicClass, getCopy, hasEqualValue, set, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.seasar.doma.wrapper.Wrapper
get, getBasicClass, getCopy, hasEqualValue
-
Constructor Details
-
PrimitiveDoubleWrapper
public PrimitiveDoubleWrapper() -
PrimitiveDoubleWrapper
public PrimitiveDoubleWrapper(double value)
-
-
Method Details
-
doSet
- Overrides:
doSetin classAbstractWrapper<Double>
-
set
Description copied from interface:WrapperSets the value.- Specified by:
setin interfaceNumberWrapper<Double>- Overrides:
setin classDoubleWrapper- Parameters:
v- the value
-
getDefault
Description copied from interface:WrapperReturns the default value.- Specified by:
getDefaultin interfaceWrapper<Double>- Overrides:
getDefaultin classAbstractWrapper<Double>- Returns:
- the boxed default value of a primitive type if this is a wrapper for a boxed type, else
null
-
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<Double>- Overrides:
acceptin classDoubleWrapper- 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
-