Class IntegerType

All Implemented Interfaces:
FixedWidthType, Type

public final class IntegerType extends AbstractIntType
  • Field Details

  • Method Details

    • getObjectValue

      public Object getObjectValue(ConnectorSession session, Block block, int position)
      Description copied from interface: Type
      Gets an object representation of the type value in the block position. This is the value returned to the user via the REST endpoint and therefore must be JSON serializable.
    • getRange

      public Optional<Type.Range> getRange()
      Description copied from interface: Type
      Return the range of possible values for this type, if available.

      The type of the values must match Type.getJavaType()

    • getPreviousValue

      public Optional<Object> getPreviousValue(Object object)
      Description copied from interface: Type
      Returns the maximum value that compares less than value.

      The type of the value must match Type.getJavaType().

    • getNextValue

      public Optional<Object> getNextValue(Object object)
      Description copied from interface: Type
      Returns the minimum value that compares greater than value.

      The type of the value must match Type.getJavaType().

    • getDiscreteValues

      public Optional<Stream<?>> getDiscreteValues(Type.Range range)
      Description copied from interface: Type
      Returns a stream of discrete values inside the specified range (if supported by this type).
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class AbstractType
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class AbstractType