Class LongWrapper

java.lang.Object
org.seasar.doma.wrapper.AbstractWrapper<Long>
org.seasar.doma.wrapper.LongWrapper
All Implemented Interfaces:
NumberWrapper<Long>, Wrapper<Long>
Direct Known Subclasses:
PrimitiveLongWrapper

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

    • LongWrapper

      public LongWrapper()
    • LongWrapper

      public LongWrapper(Long value)
  • Method Details

    • set

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

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

      public void decrement()
      Description copied from interface: NumberWrapper
      Decrements this object.
      Specified by:
      decrement in interface NumberWrapper<Long>
    • 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<Long>
      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