Class DateType

All Implemented Interfaces:
FixedWidthType, Type

public final class DateType extends AbstractIntType
  • Field Details

    • DATE

      public static final DateType DATE
  • 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().

    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class AbstractType