Record Class ParameterDescription
java.lang.Object
java.lang.Record
com.github.kaktushose.jda.commands.definitions.description.ParameterDescription
- Record Components:
type
- theClass
representing the type of this parametername
- the name of the parameterannotations
- aCollection
of allAnnotation
s this parameter is annotated with
- All Implemented Interfaces:
Description
public record ParameterDescription(@NotNull Class<?> type, @NotNull String name, @NotNull Collection<Annotation> annotations)
extends Record
implements Description
A
Description
that describes a parameter.-
Constructor Summary
ConstructorDescriptionParameterDescription
(@NotNull Class<?> type, @NotNull String name, @NotNull Collection<Annotation> annotations) Creates an instance of aParameterDescription
record class. -
Method Summary
Modifier and TypeMethodDescription@NotNull Collection
<Annotation> Returns the value of theannotations
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.@NotNull String
name()
Returns the value of thename
record component.final String
toString()
Returns a string representation of this record class.@NotNull Class
<?> type()
Returns the value of thetype
record component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.github.kaktushose.jda.commands.definitions.description.Description
annotation
-
Constructor Details
-
ParameterDescription
public ParameterDescription(@NotNull @NotNull Class<?> type, @NotNull @NotNull String name, @NotNull @NotNull Collection<Annotation> annotations) Creates an instance of aParameterDescription
record class.- Parameters:
type
- the value for thetype
record componentname
- the value for thename
record componentannotations
- the value for theannotations
record 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)
. -
type
-
name
-
annotations
Returns the value of theannotations
record component.- Specified by:
annotations
in interfaceDescription
- Returns:
- the value of the
annotations
record component
-