- All Implemented Interfaces:
NumberWrapper<BigDecimal>,Wrapper<BigDecimal>
public class BigDecimalWrapper
extends AbstractWrapper<BigDecimal>
implements NumberWrapper<BigDecimal>
A wrapper for the
BigDecimal 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.voidDecrements this object.protected booleandoHasEqualValue(Object otherValue) voidIncrements this object.voidSets the value.Methods inherited from class org.seasar.doma.wrapper.AbstractWrapper
doGet, doGetCopy, doSet, get, getBasicClass, getCopy, getDefault, 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, getDefault, hasEqualValue, isPrimitiveWrapper
-
Constructor Details
-
BigDecimalWrapper
public BigDecimalWrapper() -
BigDecimalWrapper
-
-
Method Details
-
set
Description copied from interface:WrapperSets the value.- Specified by:
setin interfaceNumberWrapper<BigDecimal>- Parameters:
v- the value
-
increment
public void increment()Description copied from interface:NumberWrapperIncrements this object.- Specified by:
incrementin interfaceNumberWrapper<BigDecimal>
-
decrement
public void decrement()Description copied from interface:NumberWrapperDecrements this object.- Specified by:
decrementin interfaceNumberWrapper<BigDecimal>
-
doHasEqualValue
- Overrides:
doHasEqualValuein classAbstractWrapper<BigDecimal>
-
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<BigDecimal>- 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
-