Record Class Link.CrossLink
java.lang.Object
java.lang.Record
org.aya.pretty.doc.Link.CrossLink
- All Implemented Interfaces:
Serializable,Link
- Enclosing interface:
Link
public static record Link.CrossLink(@NotNull kala.collection.immutable.ImmutableSeq<String> path, @Nullable Link.LocalId location)
extends Record
implements Link
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.aya.pretty.doc.Link
Link.CrossLink, Link.DirectLink, Link.LocalId -
Constructor Summary
ConstructorsConstructorDescriptionCrossLink(@NotNull kala.collection.immutable.ImmutableSeq<String> path, @Nullable Link.LocalId location) Creates an instance of aCrossLinkrecord class. -
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.@Nullable Link.LocalIdlocation()Returns the value of thelocationrecord component.@NotNull kala.collection.immutable.ImmutableSeq<String> path()Returns the value of thepathrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CrossLink
public CrossLink(@NotNull @NotNull kala.collection.immutable.ImmutableSeq<String> path, @Nullable @Nullable Link.LocalId location) Creates an instance of aCrossLinkrecord class.- Parameters:
path- the value for thepathrecord componentlocation- the value for thelocationrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-
location
Returns the value of thelocationrecord component.- Returns:
- the value of the
locationrecord component
-