Record Class ConfigContext.ConfigKeyContext
java.lang.Object
java.lang.Record
org.chenile.cconfig.spi.ConfigContext.ConfigKeyContext
- Enclosing class:
ConfigContext
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConfigKeyContext(String module, String key, String customAttribute) Creates an instance of aConfigKeyContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecustomAttributerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.key()Returns the value of thekeyrecord component.module()Returns the value of themodulerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
module
The field for themodulerecord component. -
key
The field for thekeyrecord component. -
customAttribute
The field for thecustomAttributerecord component.
-
-
Constructor Details
-
ConfigKeyContext
Creates an instance of aConfigKeyContextrecord class.- Parameters:
module- the value for themodulerecord componentkey- the value for thekeyrecord componentcustomAttribute- the value for thecustomAttributerecord 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). -
module
Returns the value of themodulerecord component.- Returns:
- the value of the
modulerecord component
-
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
customAttribute
Returns the value of thecustomAttributerecord component.- Returns:
- the value of the
customAttributerecord component
-