Package org.nuxeo.ecm.core.search
Record Class SearchIndex
java.lang.Object
java.lang.Record
org.nuxeo.ecm.core.search.SearchIndex
A SearchIndex is a tuple that designates a SearchClient, an index and a repository.
- Since:
- 2025.0
-
Constructor Summary
ConstructorsConstructorDescriptionSearchIndex
(String repository, String client, String index) Creates an instance of aSearchIndex
record class. -
Method Summary
Modifier and TypeMethodDescriptionclient()
Returns the value of theclient
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.index()
Returns the value of theindex
record component.static SearchIndex
Returns the value of therepository
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
SearchIndex
Creates an instance of aSearchIndex
record class.- Parameters:
repository
- the value for therepository
record componentclient
- the value for theclient
record componentindex
- the value for theindex
record component
-
-
Method Details
-
of
-
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)
. -
repository
Returns the value of therepository
record component.- Returns:
- the value of the
repository
record component
-
client
Returns the value of theclient
record component.- Returns:
- the value of the
client
record component
-
index
Returns the value of theindex
record component.- Returns:
- the value of the
index
record component
-