Class TimeType

  • All Implemented Interfaces:
    java.util.Comparator<java.nio.ByteBuffer>, AssignmentTestable

    public class TimeType
    extends TemporalType<java.lang.Long>
    Nanosecond resolution time values
    • Field Detail

      • instance

        public static final TimeType instance
    • Method Detail

      • isValueCompatibleWithInternal

        public boolean isValueCompatibleWithInternal​(AbstractType<?> otherType)
        Description copied from class: AbstractType
        Needed to handle ReversedType in value-compatibility checks. Subclasses should implement this instead of isValueCompatibleWith().
        Overrides:
        isValueCompatibleWithInternal in class AbstractType<java.lang.Long>
      • toJSONString

        public java.lang.String toJSONString​(java.nio.ByteBuffer buffer,
                                             ProtocolVersion protocolVersion)
        Description copied from class: AbstractType
        Converts the specified value into its JSON representation.

        The buffer position will stay the same.

        Overrides:
        toJSONString in class AbstractType<java.lang.Long>
        Parameters:
        buffer - the value to convert
        protocolVersion - the protocol version to use for the conversion
        Returns:
        a JSON string representing the specified value
      • now

        public java.nio.ByteBuffer now()
        Description copied from class: TemporalType
        Returns the current temporal value.
        Overrides:
        now in class TemporalType<java.lang.Long>
        Returns:
        the current temporal value.