Class BigDecimalWrapper

java.lang.Object
org.seasar.doma.wrapper.AbstractWrapper<BigDecimal>
org.seasar.doma.wrapper.BigDecimalWrapper
All Implemented Interfaces:
NumberWrapper<BigDecimal>, Wrapper<BigDecimal>

public class BigDecimalWrapper extends AbstractWrapper<BigDecimal> implements NumberWrapper<BigDecimal>
A wrapper for the BigDecimal class.
  • Constructor Details

    • BigDecimalWrapper

      public BigDecimalWrapper()
    • BigDecimalWrapper

      public BigDecimalWrapper(BigDecimal value)
  • Method Details

    • set

      public void set(Number v)
      Description copied from interface: Wrapper
      Sets the value.
      Specified by:
      set in interface NumberWrapper<BigDecimal>
      Parameters:
      v - the value
    • increment

      public void increment()
      Description copied from interface: NumberWrapper
      Increments this object.
      Specified by:
      increment in interface NumberWrapper<BigDecimal>
    • decrement

      public void decrement()
      Description copied from interface: NumberWrapper
      Decrements this object.
      Specified by:
      decrement in interface NumberWrapper<BigDecimal>
    • doHasEqualValue

      protected boolean doHasEqualValue(Object otherValue)
      Overrides:
      doHasEqualValue in class AbstractWrapper<BigDecimal>
    • accept

      public <R, P, Q, TH extends Throwable> R accept(WrapperVisitor<R,P,Q,TH> visitor, P p, Q q) throws TH
      Description copied from interface: Wrapper
      Accept a visitor.
      Specified by:
      accept in interface Wrapper<BigDecimal>
      Type Parameters:
      R - The result
      P - The first parameter type
      Q - The second parameter type
      TH - The error or exception type
      Parameters:
      visitor - the visitor
      p - the first parameter
      q - the second parameter
      Returns:
      the result
      Throws:
      TH - the error or exception type