java.lang.Object
org.seasar.doma.wrapper.AbstractWrapper<Float>
org.seasar.doma.wrapper.FloatWrapper
org.seasar.doma.wrapper.PrimitiveFloatWrapper
- All Implemented Interfaces:
NumberWrapper<Float>,Wrapper<Float>
A wrapper for the
float 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.FloatWrapper
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
-
PrimitiveFloatWrapper
public PrimitiveFloatWrapper() -
PrimitiveFloatWrapper
public PrimitiveFloatWrapper(float value)
-
-
Method Details
-
doSet
- Overrides:
doSetin classAbstractWrapper<Float>
-
set
Description copied from interface:WrapperSets the value.- Specified by:
setin interfaceNumberWrapper<Float>- Overrides:
setin classFloatWrapper- Parameters:
v- the value
-
getDefault
Description copied from interface:WrapperReturns the default value.- Specified by:
getDefaultin interfaceWrapper<Float>- Overrides:
getDefaultin classAbstractWrapper<Float>- 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<Float>- Overrides:
acceptin classFloatWrapper- 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
-