Record Class FileConfigOrigin
java.lang.Object
java.lang.Record
ru.tinkoff.kora.config.common.origin.FileConfigOrigin
- All Implemented Interfaces:
ConfigOrigin
-
Constructor Summary
ConstructorsConstructorDescriptionFileConfigOrigin(Path path) Creates an instance of aFileConfigOriginrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.path()Returns the value of thepathrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FileConfigOrigin
Creates an instance of aFileConfigOriginrecord class.- Parameters:
path- the value for thepathrecord component
-
-
Method Details
-
description
- Specified by:
descriptionin interfaceConfigOrigin- Returns:
- Русский: Текстовое описание источника происхождения конфигурации
English: Text description of the source of origin of the configuration
-
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). -
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. -
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-