Record Class GraphPane.RowInfo
java.lang.Object
java.lang.Record
io.github.jbastgen.stemma.app.graph.GraphPane.RowInfo
- Enclosing class:
GraphPane
public static record GraphPane.RowInfo(String id, boolean wip, boolean head, boolean merge)
extends Record
What the graph needs to know about each row.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanhead()Returns the value of theheadrecord component.id()Returns the value of theidrecord component.booleanmerge()Returns the value of themergerecord component.final StringtoString()Returns a string representation of this record class.booleanwip()Returns the value of thewiprecord component.
-
Constructor Details
-
RowInfo
Creates an instance of aRowInforecord class.- Parameters:
id- the value for theidrecord componentwip- the value for thewiprecord componenthead- the value for theheadrecord componentmerge- the value for themergerecord component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
wip
public boolean wip()Returns the value of thewiprecord component.- Returns:
- the value of the
wiprecord component
-
head
public boolean head()Returns the value of theheadrecord component.- Returns:
- the value of the
headrecord component
-
merge
public boolean merge()Returns the value of themergerecord component.- Returns:
- the value of the
mergerecord component
-