Package guideme.compiler
Record Class AnchorIndexer.AnchorTarget
java.lang.Object
java.lang.Record
guideme.compiler.AnchorIndexer.AnchorTarget
- Enclosing class:
AnchorIndexer
public static record AnchorIndexer.AnchorTarget(LytNode blockNode, @Nullable LytFlowContent flowContent)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionAnchorTarget(LytNode blockNode, @Nullable LytFlowContent flowContent) Creates an instance of aAnchorTargetrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theblockNoderecord component.final booleanIndicates whether some other object is "equal to" this one.@Nullable LytFlowContentReturns the value of theflowContentrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AnchorTarget
Creates an instance of aAnchorTargetrecord class.- Parameters:
blockNode- the value for theblockNoderecord componentflowContent- the value for theflowContentrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
blockNode
Returns the value of theblockNoderecord component.- Returns:
- the value of the
blockNoderecord component
-
flowContent
Returns the value of theflowContentrecord component.- Returns:
- the value of the
flowContentrecord component
-