Package ru.tinkoff.kora.config.common
Record Class ConfigValue.NullValue
java.lang.Object
java.lang.Record
ru.tinkoff.kora.config.common.ConfigValue.NullValue
- All Implemented Interfaces:
ConfigValue<Void>
- Enclosing interface:
- ConfigValue<T>
public static record ConfigValue.NullValue(ConfigValueOrigin origin)
extends Record
implements ConfigValue<Void>
-
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
ConstructorsConstructorDescriptionNullValue(ConfigValueOrigin origin) Creates an instance of aNullValuerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.origin()Returns the value of theoriginrecord component.toString()Returns a string representation of this record class.value()
-
Constructor Details
-
NullValue
Creates an instance of aNullValuerecord class.- Parameters:
origin- the value for theoriginrecord component
-
-
Method Details
-
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. -
value
- Specified by:
valuein interfaceConfigValue<Void>
-
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<Void>- Returns:
- the value of the
originrecord component
-