Record Class PropertyPath.Segment
java.lang.Object
java.lang.Record
org.springframework.beans.PropertyPath.Segment
- Record Components:
name- the property name, which is empty only for a root-level indexed access such as"[user]"keys- the keys of the indexes applied to the property, with any surrounding quotes removed; nevernull, possibly empty
- Enclosing class:
PropertyPath
A dot-separated segment of a property path. It consists of a
property name and the keys of any indexes applied to it, if the
target property is an indexed collection.
For example, the path "map[key].name" has two segments:
Segment["map", ["key"]] and Segment["name", []].
- Since:
- 7.1
- Author:
- Brian Clozel
-
Constructor Summary
Constructors -
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.keys()Returns the value of thekeysrecord component.name()Returns the value of thenamerecord component.The canonical format of this segment alone: its name, followed by each key wrapped in brackets, quoted only when necessary.final StringtoString()Returns a string representation of this record class.Return a new segment instance with the same name, but dropping the last key.
-
Constructor Details
-
Segment
-
-
Method Details
-
toCanonicalName
The canonical format of this segment alone: its name, followed by each key wrapped in brackets, quoted only when necessary. -
withoutLastKey
Return a new segment instance with the same name, but dropping the last key. -
toString
-
hashCode
-
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). -
name
-
keys
-