Record Class DialogInputs
java.lang.Object
java.lang.Record
com.fancyinnovations.fancydialogs.api.data.inputs.DialogInputs
public record DialogInputs(@Nullable List<DialogTextField> textFields, @Nullable List<DialogSelect> selects)
extends Record
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDialogInputs(@Nullable List<DialogTextField> textFields, @Nullable List<DialogSelect> selects) Creates an instance of aDialogInputsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionall()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable List<DialogSelect> selects()Returns the value of theselectsrecord component.@Nullable List<DialogTextField> Returns the value of thetextFieldsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
EMPTY
-
-
Constructor Details
-
DialogInputs
public DialogInputs(@Nullable @Nullable List<DialogTextField> textFields, @Nullable @Nullable List<DialogSelect> selects) Creates an instance of aDialogInputsrecord class.- Parameters:
textFields- the value for thetextFieldsrecord componentselects- the value for theselectsrecord component
-
-
Method Details
-
all
-
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 withObjects::equals(Object,Object). -
textFields
Returns the value of thetextFieldsrecord component.- Returns:
- the value of the
textFieldsrecord component
-
selects
Returns the value of theselectsrecord component.- Returns:
- the value of the
selectsrecord component
-