Package de.firemage.autograder.span
Record Class Highlight
java.lang.Object
java.lang.Record
de.firemage.autograder.span.Highlight
-
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.booleanbooleanisMultilineEnd(int lineNumber) booleanisMultilineStart(int lineNumber) label()Returns the value of thelabelrecord component.render(int lineNumber) span()Returns the value of thespanrecord component.style()Returns the value of thestylerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Highlight
Creates an instance of aHighlightrecord class.- Parameters:
span- the value for thespanrecord componentlabel- the value for thelabelrecord componentstyle- the value for thestylerecord component
-
-
Method Details
-
isMultilineStart
public boolean isMultilineStart(int lineNumber) -
isMultilineEnd
public boolean isMultilineEnd(int lineNumber) -
render
-
isMultiline
public boolean isMultiline() -
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. All components in this record class are compared withObjects::equals(Object,Object). -
span
Returns the value of thespanrecord component.- Returns:
- the value of the
spanrecord component
-
label
Returns the value of thelabelrecord component.- Returns:
- the value of the
labelrecord component
-
style
Returns the value of thestylerecord component.- Returns:
- the value of the
stylerecord component
-