Record Class Property.Map<K,V>
java.lang.Object
java.lang.Record
io.github.kaktushose.jdac.configuration.Property.Map<K,V>
- Record Components:
name- the property's namecategory- theProperty.Categoryof this propertykey- the key typevalue- the value typefallbackBehaviour- the property'sProperty.FallbackBehaviourstage- the property's stage
public static record Property.Map<K,V> (String name, Property.Category category, Class<K> key, Class<V> value, Property.FallbackBehaviour fallbackBehaviour, Stage stage)
extends Record
implements Property<Map<K,V>>
A
Property.Map property basically represents a Map, where each value belongs target a specific key.-
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
ConstructorsConstructorDescriptionMap(String name, Property.Category category, Class<K> key, Class<V> value, Property.FallbackBehaviour fallbackBehaviour, Stage stage) Creates an instance of aMaprecord 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.key()Returns the value of thekeyrecord component.name()Returns the value of thenamerecord component.stage()Returns the value of thestagerecord component.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Constructor Details
-
Map
public Map(String name, Property.Category category, Class<K> key, Class<V> value, Property.FallbackBehaviour fallbackBehaviour, Stage stage) Creates an instance of aMaprecord class.- Parameters:
name- the value for thenamerecord componentcategory- the value for thecategoryrecord componentkey- the value for thekeyrecord componentvalue- the value for thevaluerecord 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
-
key
-
value
-
fallbackBehaviour
Returns the value of thefallbackBehaviourrecord component.- Specified by:
fallbackBehaviourin interfaceProperty<K>- Returns:
- the value of the
fallbackBehaviourrecord component
-
stage
-