java.lang.Object
java.lang.Record
org.aya.cli.render.RenderOptions.ChainedSetup
- All Implemented Interfaces:
RenderOptions.BackendSetup
- Enclosing class:
RenderOptions
public static record RenderOptions.ChainedSetup(@NotNull RenderOptions.BackendSetup first, @NotNull RenderOptions.BackendSetup second)
extends Record
implements RenderOptions.BackendSetup
-
Constructor Summary
ConstructorsConstructorDescriptionChainedSetup(@NotNull RenderOptions.BackendSetup first, @NotNull RenderOptions.BackendSetup second) Creates an instance of aChainedSetuprecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.@NotNull RenderOptions.BackendSetupfirst()Returns the value of thefirstrecord component.final inthashCode()Returns a hash code value for this object.@NotNull RenderOptions.BackendSetupsecond()Returns the value of thesecondrecord component.<T extends org.aya.pretty.printer.PrinterConfig.Basic<?>>
Tsetup(T config) 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.cli.render.RenderOptions.BackendSetup
then
-
Constructor Details
-
ChainedSetup
public ChainedSetup(@NotNull @NotNull RenderOptions.BackendSetup first, @NotNull @NotNull RenderOptions.BackendSetup second) Creates an instance of aChainedSetuprecord class.- Parameters:
first- the value for thefirstrecord componentsecond- the value for thesecondrecord component
-
-
Method Details
-
setup
@NotNull public <T extends org.aya.pretty.printer.PrinterConfig.Basic<?>> T setup(@NotNull T config) - Specified by:
setupin interfaceRenderOptions.BackendSetup
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
first
Returns the value of thefirstrecord component.- Returns:
- the value of the
firstrecord component
-
second
Returns the value of thesecondrecord component.- Returns:
- the value of the
secondrecord component
-