java.lang.Object
java.lang.Record
org.aya.pretty.doc.Doc.HyperLinked
- Record Components:
href- The id of jump target when clicked.id- The id of the doc itself.
- Enclosing interface:
Doc
public static record Doc.HyperLinked(@NotNull Doc doc, @NotNull Link href, @Nullable Link id, @Nullable String hover)
extends Record
implements Doc
A clickable text line without '\n'.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.aya.pretty.doc.Doc
Doc.Cat, Doc.CodeBlock, Doc.Column, Doc.Empty, Doc.EscapedText, Doc.FlatAlt, Doc.HyperLinked, Doc.Image, Doc.InlineCode, Doc.Line, Doc.List, Doc.Nest, Doc.Nesting, Doc.PageWidth, Doc.PlainText, Doc.SpecialSymbol, Doc.Styled, Doc.Union -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionHyperLinked(@NotNull Doc doc, @NotNull Link href, @Nullable Link id, @Nullable String hover) Creates an instance of aHyperLinkedrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull Docdoc()Returns the value of thedocrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable Stringhover()Returns the value of thehoverrecord component.@NotNull Linkhref()Returns the value of thehrefrecord component.@Nullable Linkid()Returns the value of theidrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.aya.pretty.doc.Doc
asSeq, commonRender, debugRender, isEmpty, isNotEmpty, render, renderToAyaMd, renderToHtml, renderToHtml, renderToMd, renderToString, renderToString, renderToTerminal, renderToTerminal, renderToTeX, toDoc
-
Constructor Details
-
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). -
doc
Returns the value of thedocrecord component.- Returns:
- the value of the
docrecord component
-
href
Returns the value of thehrefrecord component.- Returns:
- the value of the
hrefrecord component
-
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
hover
Returns the value of thehoverrecord component.- Returns:
- the value of the
hoverrecord component
-