Package ru.tinkoff.kora.config.common
Record Class ConfigValue.ObjectValue
java.lang.Object
java.lang.Record
ru.tinkoff.kora.config.common.ConfigValue.ObjectValue
- All Implemented Interfaces:
Iterable<Map.Entry<String,,ConfigValue<?>>> ConfigValue<Map<String,ConfigValue<?>>>
- Enclosing interface:
- ConfigValue<T>
public static record ConfigValue.ObjectValue(ConfigValueOrigin origin, Map<String,ConfigValue<?>> value)
extends Record
implements ConfigValue<Map<String,ConfigValue<?>>>, Iterable<Map.Entry<String,ConfigValue<?>>>
-
Nested Class Summary
Nested classes/interfaces inherited from interface ru.tinkoff.kora.config.common.ConfigValue
ConfigValue.ArrayValue, ConfigValue.BooleanValue, ConfigValue.NullValue, ConfigValue.NumberValue, ConfigValue.ObjectValue, ConfigValue.StringValue -
Constructor Summary
ConstructorsConstructorDescriptionObjectValue(ConfigValueOrigin origin, Map<String, ConfigValue<?>> value) Creates an instance of aObjectValuerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.ConfigValue<?>ConfigValue<?>get(PathElement.Key key) final inthashCode()Returns a hash code value for this object.iterator()origin()Returns the value of theoriginrecord component.toString()Returns a string representation of this record class.Map<String,ConfigValue<?>> value()Returns the value of thevaluerecord component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface ru.tinkoff.kora.config.common.ConfigValue
asArray, asBoolean, asNumber, asObject, asString, isNullMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
ObjectValue
Creates an instance of aObjectValuerecord class.- Parameters:
origin- the value for theoriginrecord componentvalue- the value for thevaluerecord component
-
-
Method Details
-
get
-
get
-
iterator
- Specified by:
iteratorin interfaceIterable<Map.Entry<String,ConfigValue<?>>>
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
origin
Returns the value of theoriginrecord component.- Specified by:
originin interfaceConfigValue<Map<String,ConfigValue<?>>> - Returns:
- the value of the
originrecord component
-
value
Returns the value of thevaluerecord component.- Specified by:
valuein interfaceConfigValue<Map<String,ConfigValue<?>>> - Returns:
- the value of the
valuerecord component
-