java.lang.Object
java.lang.Record
xyz.cofe.coll.im.htree.Nest.RootPathNode
- Record Components:
pathValue- значение
- All Implemented Interfaces:
Nest.PathNode
- Enclosing interface:
Nest
Начало пути
-
Constructor Summary
ConstructorsConstructorDescriptionRootPathNode(Object pathValue) Creates an instance of aRootPathNoderecord 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.Returns the value of thepathValuerecord component.final StringtoString()Returns a string representation of this record class.withPathValue(Object value) Создает клон элемента, с указанным значением
-
Constructor Details
-
RootPathNode
Creates an instance of aRootPathNoderecord class.- Parameters:
pathValue- the value for thepathValuerecord component
-
-
Method Details
-
withPathValue
Description copied from interface:Nest.PathNodeСоздает клон элемента, с указанным значением- Specified by:
withPathValuein interfaceNest.PathNode- Parameters:
value- значение- Returns:
- клон
-
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). -
pathValue
Returns the value of thepathValuerecord component.- Specified by:
pathValuein interfaceNest.PathNode- Returns:
- the value of the
pathValuerecord component
-