Package org.ametys.cms.search.content
Record Class ContentSearchHelper.JoinedPaths
java.lang.Object
java.lang.Record
org.ametys.cms.search.content.ContentSearchHelper.JoinedPaths
- Record Components:
joinedPaths
- the joined pathlastSegmentPrefix
- the prefix of the las segment (used if the reference is in a composite)
- Enclosing class:
ContentSearchHelper
public static record ContentSearchHelper.JoinedPaths(List<String> joinedPaths, String lastSegmentPrefix)
extends Record
Record representing the computed joined paths from a reference
-
Constructor Summary
ConstructorsConstructorDescriptionJoinedPaths
(List<String> joinedPaths, String lastSegmentPrefix) Creates an instance of aJoinedPaths
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of thejoinedPaths
record component.Returns the value of thelastSegmentPrefix
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
JoinedPaths
Creates an instance of aJoinedPaths
record class.- Parameters:
joinedPaths
- the value for thejoinedPaths
record componentlastSegmentPrefix
- the value for thelastSegmentPrefix
record 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
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)
. -
joinedPaths
Returns the value of thejoinedPaths
record component.- Returns:
- the value of the
joinedPaths
record component
-
lastSegmentPrefix
Returns the value of thelastSegmentPrefix
record component.- Returns:
- the value of the
lastSegmentPrefix
record component
-