Klasse ObjectHistory.Entry

java.lang.Object
org.opentcs.data.ObjectHistory.Entry
Alle implementierten Schnittstellen:
Serializable
Umschließende Klasse:
ObjectHistory

public static class ObjectHistory.Entry extends Object implements Serializable
An entry/event in a history.
Siehe auch:
  • Konstruktordetails

    • Entry

      public Entry(Instant timestamp, String eventCode, Object supplement)
      Creates a new instance.
      Parameter:
      timestamp - The point of time at which the event occured.
      eventCode - A code identifying the event that occured.
      supplement - Supplementary information about the event. Must be Serializable and should provide a human-readable default representation from its toString() method.
    • Entry

      public Entry(Instant timestamp, String eventCode)
      Creates a new instance with an empty supplement.
      Parameter:
      timestamp - The point of time at which the event occured.
      eventCode - A code identifying the event that occured.
    • Entry

      public Entry(String eventCode, Object supplement)
      Creates a new instance with the timestamp set to the current point of time.
      Parameter:
      eventCode - A code identifying the event that occured.
      supplement - Supplementary information about the event. Must be Serializable and should provide a human-readable default representation from its toString() method.
    • Entry

      public Entry(String eventCode)
      Creates a new instance with the timestamp set to the current point of time and an empty supplement.
      Parameter:
      eventCode - A code identifying the event that occured.
  • Methodendetails

    • getTimestamp

      @Nonnull public Instant getTimestamp()
      Returns this entry's timestamp.
      Gibt zurück:
      This entry's timestamp.
    • getEventCode

      @Nonnull public String getEventCode()
      Returns this entry's event code.
      Gibt zurück:
      This entry's event code.
    • getSupplement

      @Nonnull public Object getSupplement()
      Returns a supplemental object providing details about the event.
      Gibt zurück:
      A supplemental object providing details about the event.
    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object