Record Class SimpleConfigValuePath
java.lang.Object
java.lang.Record
ru.tinkoff.kora.config.common.impl.SimpleConfigValuePath
- All Implemented Interfaces:
ConfigValuePath
public record SimpleConfigValuePath(@Nullable PathElement last, @Nullable ConfigValuePath prev)
extends Record
implements ConfigValuePath
-
Field Summary
Fields inherited from interface ru.tinkoff.kora.config.common.ConfigValuePath
ARRAY_ELEMENT_PATTERN, ROOT -
Constructor Summary
ConstructorsConstructorDescriptionSimpleConfigValuePath(PathElement last, ConfigValuePath prev) Creates an instance of aSimpleConfigValuePathrecord 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.last()Returns the value of thelastrecord component.prev()Returns the value of theprevrecord component.toString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface ru.tinkoff.kora.config.common.ConfigValuePath
child, child, child
-
Constructor Details
-
SimpleConfigValuePath
Creates an instance of aSimpleConfigValuePathrecord class.- Parameters:
last- the value for thelastrecord componentprev- the value for theprevrecord 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. -
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). -
last
Returns the value of thelastrecord component.- Specified by:
lastin interfaceConfigValuePath- Returns:
- the value of the
lastrecord component
-
prev
Returns the value of theprevrecord component.- Specified by:
previn interfaceConfigValuePath- Returns:
- the value of the
prevrecord component
-