Package studio.mevera.imperat.context
Record Class FlagData.FlagDataImpl<S extends Source>
java.lang.Object
java.lang.Record
studio.mevera.imperat.context.FlagData.FlagDataImpl<S>
- All Implemented Interfaces:
FlagData<S>
-
Nested Class Summary
Nested classes/interfaces inherited from interface studio.mevera.imperat.context.FlagData
FlagData.FlagDataImpl<S extends Source> -
Constructor Summary
ConstructorsConstructorDescriptionFlagDataImpl(String name, List<String> aliases, ParameterType<S, ?> inputType, boolean free) 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.booleanfree()Returns the value of thefreerecord component.final inthashCode()Returns a hash code value for this object.ParameterType<S,?> Returns the value of theinputTyperecord component.booleanisFree()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 componentfree- the value for thefreerecord component
-
-
Method Details
-
isFree
public boolean isFree() -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
name
Returns the value of thenamerecord component. -
aliases
Returns the value of thealiasesrecord component. -
inputType
Returns the value of theinputTyperecord component. -
free
public boolean free()Returns the value of thefreerecord component.- Returns:
- the value of the
freerecord component
-