Record Class Property.Singleton<T>
java.lang.Object
java.lang.Record
io.github.kaktushose.jdac.configuration.Property.Singleton<T>
- Record Components:
name- the property's namecategory- the property's categorytype- the property's typestage- the property's stage
- All Implemented Interfaces:
Property<T>
public static record Property.Singleton<T>(String name, Property.Category category, Class<T> type, Stage stage)
extends Record
implements Property<T>
A
Property.Singleton property just hols one value. The value with the highest priority takes precedence.-
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, INSTANTIATOR, INTROSPECTION, INVOCATION_CONTEXT, JDA, JDA_COMMANDS, JDA_EVENT, KEY_VALUE_STORE, LOADABLE, LOCALIZATION_FUNCTION, 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncategory()Returns the value of thecategoryrecord component.final booleanIndicates whether some other object is "equal to" this one.Whether the fallback values provided by JDA-Commands should be accumulated together with other user providedPropertyProviders for this property.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
-
Method Details
-
fallbackBehaviour
Description copied from interface:PropertyWhether the fallback values provided by JDA-Commands should be accumulated together with other user providedPropertyProviders for this property.- Specified by:
fallbackBehaviourin interfaceProperty<T>- Returns:
- the fallback behaviour
-
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
-
stage
-