Class Item<T>

java.lang.Object
org.tasktide.itemstore.Item<T>
Type Parameters:
T -

public class Item<T> extends Object
Base model storing records in ItemStore
  • Constructor Details

    • Item

      public Item()
      Default constructor
    • Item

      public Item(String id, String state, String collection, String payload)
      Construct with properties
      Parameters:
      id -
      state -
      collection -
      payload -
  • Method Details

    • getId

      public String getId()
      Get Id
      Returns:
      String
    • setId

      public void setId(String id)
      Set id
      Parameters:
      id -
    • getState

      public String getState()
      Get state
      Returns:
      String
    • setState

      public void setState(String state)
      Set state
      Parameters:
      state -
    • getPayload

      public String getPayload()
      Get payload
      Returns:
      String
    • setPayload

      public void setPayload(String payload)
      Set payload
      Parameters:
      payload -
    • getCollection

      public String getCollection()
      Get collection
      Returns:
    • setCollection

      public void setCollection(String collection)
      Set step name
      Parameters:
      collection -
    • toString

      public String toString()
      Represent as string
      Overrides:
      toString in class Object
      Returns:
      String