Package com.pixelmonmod.pixelmon.api.ui
Record Class InputTypeData<T>
java.lang.Object
java.lang.Record
com.pixelmonmod.pixelmon.api.ui.InputTypeData<T>
-
Constructor Summary
ConstructorsConstructorDescriptionInputTypeData(InputType<T> inputType, Consumer<T> consumer) Creates an instance of aInputTypeDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionconsumer()Returns the value of theconsumerrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinputTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
InputTypeData
Creates an instance of aInputTypeDatarecord class.- Parameters:
inputType- the value for theinputTyperecord componentconsumer- the value for theconsumerrecord component
-
-
Method Details
-
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). -
inputType
Returns the value of theinputTyperecord component.- Returns:
- the value of the
inputTyperecord component
-
consumer
Returns the value of theconsumerrecord component.- Returns:
- the value of the
consumerrecord component
-