Package studio.mevera.imperat.context
Record Class FlagData.FlagDataImpl<S extends CommandSource>
java.lang.Object
java.lang.Record
studio.mevera.imperat.context.FlagData.FlagDataImpl<S>
- All Implemented Interfaces:
FlagData<S>
- Enclosing interface:
- FlagData<S extends CommandSource>
public static record FlagData.FlagDataImpl<S extends CommandSource>(String name, List<String> aliases, ArgumentType<S extends CommandSource,?> inputType)
extends Record
implements FlagData<S>
-
Nested Class Summary
Nested classes/interfaces inherited from interface studio.mevera.imperat.context.FlagData
FlagData.FlagDataImpl<S extends CommandSource> -
Constructor Summary
ConstructorsConstructorDescriptionFlagDataImpl(String name, List<String> aliases, ArgumentType<S, ?> inputType) Creates an instance of aFlagDataImplrecord class. -
Method Summary
Modifier and TypeMethodDescriptionaliases()Returns the value of thealiasesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.ArgumentType<S,?> Returns the value of theinputTyperecord component.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface studio.mevera.imperat.context.FlagData
acceptsInput, format, hasAlias, isSwitch
-
Constructor Details
-
FlagDataImpl
Creates an instance of aFlagDataImplrecord class.- Parameters:
name- the value for thenamerecord componentaliases- the value for thealiasesrecord componentinputType- the value for theinputTyperecord 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). -
name
Returns the value of thenamerecord component.- Specified by:
namein interfaceFlagData<S extends CommandSource>- Returns:
- the value of the
namerecord component
-
aliases
Returns the value of thealiasesrecord component.- Specified by:
aliasesin interfaceFlagData<S extends CommandSource>- Returns:
- the value of the
aliasesrecord component
-
inputType
Returns the value of theinputTyperecord component.- Specified by:
inputTypein interfaceFlagData<S extends CommandSource>- Returns:
- the value of the
inputTyperecord component
-