Interface MTTimestamp


public interface MTTimestamp
Timestamp that can be saved with a name in a repository. The timestamp can have a type so that different uses of timestamps can differentiate between which timestamps to use.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Returns the unique ID of the timestamp.
    Returns the timestamp time.
    Returns the title.
    Returns the timestamp type.
    Returns the UUID of the timestamp.
    void
    Removes this timestamp.
    void
    Saves a new timestamp or saves changes to an existing timestamp.
    void
    setTime(Date time)
    Sets the (server) time for the timestamp.
    void
    Sets the title.
    void
    Sets the timestamp type.
  • Method Details

    • getID

      long getID()
      Returns the unique ID of the timestamp.
      Returns:
      The unique ID.
    • getUUID

      String getUUID()
      Returns the UUID of the timestamp.
      Returns:
      The UUID of the timestamp.
    • getType

      String getType()
      Returns the timestamp type.
      Returns:
      The timestamp type.
    • setType

      void setType(String type)
      Sets the timestamp type.
      Parameters:
      type - The new timestamp type.
    • getTitle

      String getTitle()
      Returns the title.
      Returns:
      The title of the timestamp.
    • setTitle

      void setTitle(String title)
      Sets the title.
      Parameters:
      title - The new title of the timestamp.
    • getTime

      Date getTime()
      Returns the timestamp time. Note that the timestamp will not have a valid time until it has been saved.
      Returns:
      The time stored for the timestamp.
    • setTime

      void setTime(Date time)
      Sets the (server) time for the timestamp. You do not need to call this when creating a new timestamp, simply saving it will save it with the current server time.
      Parameters:
      time - The new time.
    • save

      void save()
      Saves a new timestamp or saves changes to an existing timestamp.
    • remove

      void remove()
      Removes this timestamp.