Class Timestamp

java.lang.Object
org.symbol.sdk.BaseValue<Timestamp>
org.symbol.sdk.symbol.models.Timestamp
All Implemented Interfaces:
Comparable<Timestamp>, Serializer

public final class Timestamp extends BaseValue<Timestamp>
  • Field Details

  • Constructor Details

    • Timestamp

      public Timestamp(long value)
      Creates a new Timestamp.
      Parameters:
      value - Value.
    • Timestamp

      public Timestamp()
      Creates a new Timestamp.
  • Method Details

    • parse

      public static Timestamp parse(Object rawValue)
      Timestamp.parse
      Parses a raw value (Timestamp, number, or decimal/0x-hex string) into a Timestamp.
      Parameters:
      rawValue - Raw value.
      Returns:
      Parsed value.
    • deserialize

      public static Timestamp deserialize(ByteBuffer buffer)
      Timestamp.deserialize
      Deserializes an instance of this object from a byte payload.
      Parameters:
      buffer - Output writer.
      Returns:
      Deserialized object.
      Throws:
      IndexOutOfBoundsException - if the buffer is truncated or a declared length overruns it
      IllegalArgumentException - if a field carries an invalid value (e.g. a reserved field or unknown discriminator)