Module aya.cli.impl

Record Class RenderOptions.Opts

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

    Constructors
    Constructor
    Description
    Opts(boolean headerCode, boolean styleCode, boolean separateStyle, boolean unicode, int pageWidth, boolean SSR)
    Creates an instance of a Opts record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    boolean
    Returns the value of the headerCode record component.
    int
    Returns the value of the pageWidth record component.
    boolean
    Returns the value of the separateStyle record component.
    <T extends org.aya.pretty.printer.PrinterConfig.Basic<?>>
    T
    setup(T config)
     
    boolean
    SSR()
    Returns the value of the SSR record component.
    boolean
    Returns the value of the styleCode record component.
    final String
    Returns a string representation of this record class.
    boolean
    Returns the value of the unicode record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Opts

      public Opts(boolean headerCode, boolean styleCode, boolean separateStyle, boolean unicode, int pageWidth, boolean SSR)
      Creates an instance of a Opts record class.
      Parameters:
      headerCode - the value for the headerCode record component
      styleCode - the value for the styleCode record component
      separateStyle - the value for the separateStyle record component
      unicode - the value for the unicode record component
      pageWidth - the value for the pageWidth record component
      SSR - the value for the SSR record component
  • Method Details

    • setup

      @NotNull public <T extends org.aya.pretty.printer.PrinterConfig.Basic<?>> T setup(@NotNull T config)
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • headerCode

      public boolean headerCode()
      Returns the value of the headerCode record component.
      Returns:
      the value of the headerCode record component
    • styleCode

      public boolean styleCode()
      Returns the value of the styleCode record component.
      Returns:
      the value of the styleCode record component
    • separateStyle

      public boolean separateStyle()
      Returns the value of the separateStyle record component.
      Returns:
      the value of the separateStyle record component
    • unicode

      public boolean unicode()
      Returns the value of the unicode record component.
      Returns:
      the value of the unicode record component
    • pageWidth

      public int pageWidth()
      Returns the value of the pageWidth record component.
      Returns:
      the value of the pageWidth record component
    • SSR

      public boolean SSR()
      Returns the value of the SSR record component.
      Returns:
      the value of the SSR record component