Class ShortWrapper

java.lang.Object
org.seasar.doma.wrapper.AbstractWrapper<Short>
org.seasar.doma.wrapper.ShortWrapper
All Implemented Interfaces:
NumberWrapper<Short>, Wrapper<Short>
Direct Known Subclasses:
PrimitiveShortWrapper

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

    • ShortWrapper

      public ShortWrapper()
    • ShortWrapper

      public ShortWrapper(Short value)
  • Method Details

    • set

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

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

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