Record Class GraphLayout.Row

java.lang.Object
java.lang.Record
io.github.jbastgen.stemma.app.graph.GraphLayout.Row
Record Components:
col - lane of the commit node
fresh - true if no child pointed at this commit (a new lane starts here)
lin - lane occupants entering the row from the top
lout - lane occupants leaving the row at the bottom
targets - lanes the parent edges run to
Enclosing class:
GraphLayout

public static record GraphLayout.Row(int col, boolean fresh, List<String> lin, List<String> lout, List<Integer> targets) extends Record
  • Constructor Details

    • Row

      public Row(int col, boolean fresh, List<String> lin, List<String> lout, List<Integer> targets)
      Creates an instance of a Row record class.
      Parameters:
      col - the value for the col record component
      fresh - the value for the fresh record component
      lin - the value for the lin record component
      lout - the value for the lout record component
      targets - the value for the targets 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • col

      public int col()
      Returns the value of the col record component.
      Returns:
      the value of the col record component
    • fresh

      public boolean fresh()
      Returns the value of the fresh record component.
      Returns:
      the value of the fresh record component
    • lin

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

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

      public List<Integer> targets()
      Returns the value of the targets record component.
      Returns:
      the value of the targets record component