Record Class Link.DirectLink
java.lang.Object
java.lang.Record
org.aya.pretty.doc.Link.DirectLink
- All Implemented Interfaces:
Serializable,Link
- Enclosing interface:
Link
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.aya.pretty.doc.Link
Link.CrossLink, Link.DirectLink, Link.LocalId -
Constructor Summary
ConstructorsConstructorDescriptionDirectLink(@NotNull String link) Creates an instance of aDirectLinkrecord 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.@NotNull Stringlink()Returns the value of thelinkrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DirectLink
Creates an instance of aDirectLinkrecord class.- Parameters:
link- the value for thelinkrecord 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). -
link
Returns the value of thelinkrecord component.- Returns:
- the value of the
linkrecord component
-