Record Class RepeatMultiChildBuilder
java.lang.Object
java.lang.Record
dev.pfaff.altargui.util.RepeatMultiChildBuilder
- All Implemented Interfaces:
MultiChildWidget.Builder
public record RepeatMultiChildBuilder(Widget child, int count)
extends Record
implements MultiChildWidget.Builder
-
Constructor Summary
ConstructorsConstructorDescriptionRepeatMultiChildBuilder
(Widget child, int count) Creates an instance of aRepeatMultiChildBuilder
record class. -
Method Summary
Modifier and TypeMethodDescriptionvoid
build
(LayoutContext context) child()
Returns the value of thechild
record component.int
count()
Returns the value of thecount
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.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
-
RepeatMultiChildBuilder
Creates an instance of aRepeatMultiChildBuilder
record class.- Parameters:
child
- the value for thechild
record componentcount
- the value for thecount
record component
-
-
Method Details
-
build
- Specified by:
build
in interfaceMultiChildWidget.Builder
-
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
child
Returns the value of thechild
record component.- Returns:
- the value of the
child
record component
-
count
public int count()Returns the value of thecount
record component.- Returns:
- the value of the
count
record component
-