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 aJoinedPathsrecord 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 thejoinedPathsrecord component.Returns the value of thelastSegmentPrefixrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
JoinedPaths
Creates an instance of aJoinedPathsrecord class.- Parameters:
joinedPaths- the value for thejoinedPathsrecord componentlastSegmentPrefix- the value for thelastSegmentPrefixrecord 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 thejoinedPathsrecord component.- Returns:
- the value of the
joinedPathsrecord component
-
lastSegmentPrefix
Returns the value of thelastSegmentPrefixrecord component.- Returns:
- the value of the
lastSegmentPrefixrecord component
-