Record Class StampRegistry.Stamp

java.lang.Object
java.lang.Record
network.ike.docs.plugin.diff.StampRegistry.Stamp
Record Components:
footnoteId - the reusable footnote id
status - the redundant S coordinate
time - the T coordinate (author date or render note)
author - the A coordinate
module - the M coordinate (topic domain)
branch - the P coordinate (branch)
commitId - the abbreviated commit id, or "worktree"
refs - issue refs from the commit trailer, or empty
Enclosing class:
StampRegistry

public static record StampRegistry.Stamp(String footnoteId, StampRegistry.Status status, String time, String author, String module, String branch, String commitId, String refs) extends Record
One stamp as used somewhere in the packet.
  • Constructor Details

    • Stamp

      public Stamp(String footnoteId, StampRegistry.Status status, String time, String author, String module, String branch, String commitId, String refs)
      Creates an instance of a Stamp record class.
      Parameters:
      footnoteId - the value for the footnoteId record component
      status - the value for the status record component
      time - the value for the time record component
      author - the value for the author record component
      module - the value for the module record component
      branch - the value for the branch record component
      commitId - the value for the commitId record component
      refs - the value for the refs record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • footnoteId

      public String footnoteId()
      Returns the value of the footnoteId record component.
      Returns:
      the value of the footnoteId record component
    • status

      public StampRegistry.Status status()
      Returns the value of the status record component.
      Returns:
      the value of the status record component
    • time

      public String time()
      Returns the value of the time record component.
      Returns:
      the value of the time record component
    • author

      public String author()
      Returns the value of the author record component.
      Returns:
      the value of the author record component
    • module

      public String module()
      Returns the value of the module record component.
      Returns:
      the value of the module record component
    • branch

      public String branch()
      Returns the value of the branch record component.
      Returns:
      the value of the branch record component
    • commitId

      public String commitId()
      Returns the value of the commitId record component.
      Returns:
      the value of the commitId record component
    • refs

      public String refs()
      Returns the value of the refs record component.
      Returns:
      the value of the refs record component