Record Class TrustedArrayMultiChildBuilder<T extends Widget>
java.lang.Object
java.lang.Record
dev.pfaff.altargui.util.TrustedArrayMultiChildBuilder<T>
- All Implemented Interfaces:
MultiChildWidget.Builder
public record TrustedArrayMultiChildBuilder<T extends Widget>(T extends Widget[] widgets, int length)
extends Record
implements MultiChildWidget.Builder
-
Constructor Summary
ConstructorsConstructorDescriptionTrustedArrayMultiChildBuilder
(T[] widgets) TrustedArrayMultiChildBuilder
(T[] widgets, int length) Creates an instance of aTrustedArrayMultiChildBuilder
record class. -
Method Summary
Modifier and TypeMethodDescriptionvoid
build
(LayoutContext mounter) boolean
Indicates whether some other object is "equal to" this one.int
hashCode()
Returns a hash code value for this object.int
length()
Returns the value of thelength
record component.final String
toString()
Returns a string representation of this record class.T[]
widgets()
Returns the value of thewidgets
record component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface dev.pfaff.altargui.widgets.MultiChildWidget.Builder
andThen
-
Constructor Details
-
TrustedArrayMultiChildBuilder
Creates an instance of aTrustedArrayMultiChildBuilder
record class.- Parameters:
widgets
- the value for thewidgets
record componentlength
- the value for thelength
record component
-
TrustedArrayMultiChildBuilder
-
-
Method Details
-
build
- Specified by:
build
in interfaceMultiChildWidget.Builder
-
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 '=='. -
hashCode
-
toString
-
widgets
Returns the value of thewidgets
record component.- Returns:
- the value of the
widgets
record component
-
length
public int length()Returns the value of thelength
record component.- Returns:
- the value of the
length
record component
-