java.lang.Object
java.lang.Record
org.aya.cli.render.RenderOptions.Opts
- Enclosing class:
RenderOptions
public static record RenderOptions.Opts(boolean headerCode, boolean styleCode, boolean separateStyle, boolean unicode, int pageWidth, boolean SSR)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionOpts(boolean headerCode, boolean styleCode, boolean separateStyle, boolean unicode, int pageWidth, boolean SSR) Creates an instance of aOptsrecord 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.booleanReturns the value of theheaderCoderecord component.intReturns the value of thepageWidthrecord component.booleanReturns the value of theseparateStylerecord component.<T extends org.aya.pretty.printer.PrinterConfig.Basic<?>>
Tsetup(T config) booleanSSR()Returns the value of theSSRrecord component.booleanReturns the value of thestyleCoderecord component.final StringtoString()Returns a string representation of this record class.booleanunicode()Returns the value of theunicoderecord component.
-
Constructor Details
-
Opts
public Opts(boolean headerCode, boolean styleCode, boolean separateStyle, boolean unicode, int pageWidth, boolean SSR) Creates an instance of aOptsrecord class.- Parameters:
headerCode- the value for theheaderCoderecord componentstyleCode- the value for thestyleCoderecord componentseparateStyle- the value for theseparateStylerecord componentunicode- the value for theunicoderecord componentpageWidth- the value for thepageWidthrecord componentSSR- the value for theSSRrecord component
-
-
Method Details
-
setup
@NotNull public <T extends org.aya.pretty.printer.PrinterConfig.Basic<?>> T setup(@NotNull T config) -
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 with '=='. -
headerCode
public boolean headerCode()Returns the value of theheaderCoderecord component.- Returns:
- the value of the
headerCoderecord component
-
styleCode
public boolean styleCode()Returns the value of thestyleCoderecord component.- Returns:
- the value of the
styleCoderecord component
-
separateStyle
public boolean separateStyle()Returns the value of theseparateStylerecord component.- Returns:
- the value of the
separateStylerecord component
-
unicode
public boolean unicode()Returns the value of theunicoderecord component.- Returns:
- the value of the
unicoderecord component
-
pageWidth
public int pageWidth()Returns the value of thepageWidthrecord component.- Returns:
- the value of the
pageWidthrecord component
-
SSR
public boolean SSR()Returns the value of theSSRrecord component.- Returns:
- the value of the
SSRrecord component
-