Record Class Property.Enumeration<E>
java.lang.Object
java.lang.Record
io.github.kaktushose.jdac.configuration.Property.Enumeration<E>
- Record Components:
name- the property's namecategory- the property's categorytype- the property's typefallbackBehaviour- the property'sProperty.FallbackBehaviourstage- the property's stage
- All Implemented Interfaces:
Property<Collection<E>>
public static record Property.Enumeration<E>(String name, Property.Category category, Class<E> type, Property.FallbackBehaviour fallbackBehaviour, Stage stage)
extends Record
implements Property<Collection<E>>
A
Property.Enumeration property basically represents a Collection of multiple values.-
Nested Class Summary
Nested classes/interfaces inherited from interface Property
Property.Category, Property.Enumeration<E>, Property.FallbackBehaviour, Property.Map<K,V>, Property.Singleton<T> -
Field Summary
Fields inherited from interface Property
CLASS_FINDER, DEFINITIONS, DESCRIPTOR, EMBED_CONFIG, EMBED_SOURCES, EMOJI_RESOLVER, EMOJI_SOURCES, ERROR_MESSAGE_FACTORY, EXPIRATION_STRATEGY, EXTENSION_DATA, EXTENSION_FILTER, GLOBAL_COMMAND_CONFIG, GLOBAL_REPLY_CONFIG, GUILD_SCOPE_PROVIDER, I18N, INTERACTION_CONTROLLER_INSTANTIATOR, INVOCATION_CONTEXT, JDA, JDA_COMMANDS, JDA_EVENT, KEY_VALUE_STORE, LOADABLE, LOCALIZE_COMMANDS, LOCALIZER, MERGED_CLASS_FINDER, MESSAGE_RESOLVER, MIDDLEWARE, PACKAGES, PERMISSION_PROVIDER, PLACEHOLDER_RESOLVER, PROVIDED, RUNTIME_ID, SHUTDOWN_JDA, STRING_RESOLVER, TYPE_ADAPTER, USER_SETTABLE, VALIDATOR -
Constructor Summary
ConstructorsConstructorDescriptionEnumeration(String name, Property.Category category, Class<E> type, Property.FallbackBehaviour fallbackBehaviour, Stage stage) Creates an instance of aEnumerationrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncategory()Returns the value of thecategoryrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefallbackBehaviourrecord component.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.stage()Returns the value of thestagerecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
Enumeration
public Enumeration(String name, Property.Category category, Class<E> type, Property.FallbackBehaviour fallbackBehaviour, Stage stage) Creates an instance of aEnumerationrecord class.- Parameters:
name- the value for thenamerecord componentcategory- the value for thecategoryrecord componenttype- the value for thetyperecord componentfallbackBehaviour- the value for thefallbackBehaviourrecord componentstage- the value for thestagerecord 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). -
name
-
category
-
type
-
fallbackBehaviour
Returns the value of thefallbackBehaviourrecord component.- Specified by:
fallbackBehaviourin interfaceProperty<E>- Returns:
- the value of the
fallbackBehaviourrecord component
-
stage
-