java.lang.Object
java.lang.Record
org.aya.pretty.doc.Doc.Nest
- Enclosing interface:
Doc
Document indented by a number of columns
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.aya.pretty.doc.Doc
Doc.Cat, Doc.Column, Doc.Empty, Doc.FlatAlt, Doc.HyperLinked, Doc.Line, Doc.Nest, Doc.Nesting, Doc.PageWidth, Doc.PlainText, Doc.SpecialSymbol, Doc.Styled, 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
asSeq, commonRender, debugRender, isEmpty, isNotEmpty, render, renderToHtml, renderToHtml, renderToString, renderToTeX, renderWithPageWidth, 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
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
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
-