Record Class DataTypeCommandInfo<T>
java.lang.Object
java.lang.Record
dev.latvian.mods.klib.data.DataTypeCommandInfo<T>
public record DataTypeCommandInfo<T>(DataType<T> dataType, ArgumentTypeProvider<T> argumentType, @Nullable ArgumentGetter<T> argumentGetter)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionDataTypeCommandInfo(DataType<T> dataType, ArgumentTypeProvider<T> argumentType, @Nullable ArgumentGetter<T> argumentGetter) Creates an instance of aDataTypeCommandInforecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable ArgumentGetter<T> Returns the value of theargumentGetterrecord component.Returns the value of theargumentTyperecord component.dataType()Returns the value of thedataTyperecord 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
public DataTypeCommandInfo(DataType<T> dataType, ArgumentTypeProvider<T> argumentType, @Nullable @Nullable ArgumentGetter<T> argumentGetter) Creates an instance of aDataTypeCommandInforecord class.- Parameters:
dataType- the value for thedataTyperecord componentargumentType- 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). -
dataType
-
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
-