Record Class SectionedBuffers.BufferSnapshot

java.lang.Object
java.lang.Record
org.ek9lang.cli.SectionedBuffers.BufferSnapshot
Enclosing class:
SectionedBuffers

public static record SectionedBuffers.BufferSnapshot(List<String> typeLines, List<String> functionLines, List<String> recordLines, List<String> traitLines, List<String> classLines, List<String> programLines) extends Record
Snapshot of all buffers for undo support.
  • Constructor Details

    • BufferSnapshot

      public BufferSnapshot(List<String> typeLines, List<String> functionLines, List<String> recordLines, List<String> traitLines, List<String> classLines, List<String> programLines)
      Creates an instance of a BufferSnapshot record class.
      Parameters:
      typeLines - the value for the typeLines record component
      functionLines - the value for the functionLines record component
      recordLines - the value for the recordLines record component
      traitLines - the value for the traitLines record component
      classLines - the value for the classLines record component
      programLines - the value for the programLines 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.
    • typeLines

      public List<String> typeLines()
      Returns the value of the typeLines record component.
      Returns:
      the value of the typeLines record component
    • functionLines

      public List<String> functionLines()
      Returns the value of the functionLines record component.
      Returns:
      the value of the functionLines record component
    • recordLines

      public List<String> recordLines()
      Returns the value of the recordLines record component.
      Returns:
      the value of the recordLines record component
    • traitLines

      public List<String> traitLines()
      Returns the value of the traitLines record component.
      Returns:
      the value of the traitLines record component
    • classLines

      public List<String> classLines()
      Returns the value of the classLines record component.
      Returns:
      the value of the classLines record component
    • programLines

      public List<String> programLines()
      Returns the value of the programLines record component.
      Returns:
      the value of the programLines record component