Record Class Doc.Nest
java.lang.Object
java.lang.Record
org.aya.pretty.doc.Doc.Nest
- Enclosing interface:
Doc
-
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.InlineMath, Doc.Line, Doc.List, Doc.MathBlock, Doc.Nest, Doc.Nesting, Doc.PageWidth, Doc.PlainText, Doc.SpecialSymbol, Doc.Styled, Doc.Tooltip, Doc.Union -
Field Summary
-
Constructor Summary
Constructors -
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.intindent()Returns the value of theindentrecord 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
commonRender, debugRender, isEmpty, isNotEmpty, render, renderToAyaMd, renderToHtml, renderToHtml, renderToMd, renderToString, renderToString, renderToTerminal, renderToTerminal, renderToTeX, toDoc
-
Constructor Details
-
Nest
Creates an instance of aNestrecord class.- Parameters:
indent- the value for theindentrecord componentdoc- the value for thedocrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
indent
public int indent()Returns the value of theindentrecord component.- Returns:
- the value of the
indentrecord component
-
doc
Returns the value of thedocrecord component.- Returns:
- the value of the
docrecord component
-