Record Class DataTypeCommandInfo
java.lang.Object
java.lang.Record
dev.latvian.mods.klib.data.DataTypeCommandInfo
public record DataTypeCommandInfo(ArgumentTypeProvider argumentType, ArgumentGetter<?> argumentGetter)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionDataTypeCommandInfo(ArgumentTypeProvider argumentType, ArgumentGetter<?> argumentGetter) Creates an instance of aDataTypeCommandInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theargumentGetterrecord component.Returns the value of theargumentTyperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DataTypeCommandInfo
Creates an instance of aDataTypeCommandInforecord class.- Parameters:
argumentType- the value for theargumentTyperecord componentargumentGetter- the value for theargumentGetterrecord component
-
-
Method Details
-
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). -
argumentType
Returns the value of theargumentTyperecord component.- Returns:
- the value of the
argumentTyperecord component
-
argumentGetter
Returns the value of theargumentGetterrecord component.- Returns:
- the value of the
argumentGetterrecord component
-