Class ObjectHistory

java.lang.Object
org.opentcs.data.ObjectHistory
All Implemented Interfaces:
Serializable

public class ObjectHistory extends Object implements Serializable
A history of events related to an object.
See Also:
  • Constructor Details

    • ObjectHistory

      public ObjectHistory()
      Creates a new instance.
  • Method Details

    • getEntries

      public List<ObjectHistory.Entry> getEntries()
      Returns this history's entries.
      Returns:
      This history's entries.
    • withEntries

      public ObjectHistory withEntries(List<ObjectHistory.Entry> entries)
      Returns a copy of this object, with the given entries.
      Parameters:
      entries - The entries.
      Returns:
      A copy of this object, with the given entries.
    • withEntryAppended

      public ObjectHistory withEntryAppended(ObjectHistory.Entry entry)
      Returns a copy of this object, with the given entry appended.
      Parameters:
      entry - The entry.
      Returns:
      A copy of this object, with the given entry appended.
    • toString

      public String toString()
      Overrides:
      toString in class Object