Record Class LDAPCollectionHelper.LDAPCollectionHelperSearchResult
java.lang.Object
java.lang.Record
org.ametys.plugins.contentio.synchronize.impl.LDAPCollectionHelper.LDAPCollectionHelperSearchResult
- Record Components:
searchResults
- the search resulthasGlobalError
- the number of errors which occured during searchnbErrors
- true if the a global error occured during search
- Enclosing class:
- LDAPCollectionHelper
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.boolean
Returns the value of thehasGlobalError
record component.final int
hashCode()
Returns a hash code value for this object.int
nbErrors()
Returns the value of thenbErrors
record component.Returns the value of thesearchResults
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
LDAPCollectionHelperSearchResult
public LDAPCollectionHelperSearchResult(Map<String, Map<String, Object>> searchResults, boolean hasGlobalError, int nbErrors) Creates an instance of aLDAPCollectionHelperSearchResult
record class.- Parameters:
searchResults
- the value for thesearchResults
record componenthasGlobalError
- the value for thehasGlobalError
record componentnbErrors
- the value for thenbErrors
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
searchResults
Returns the value of thesearchResults
record component.- Returns:
- the value of the
searchResults
record component
-
hasGlobalError
Returns the value of thehasGlobalError
record component.- Returns:
- the value of the
hasGlobalError
record component
-
nbErrors
Returns the value of thenbErrors
record component.- Returns:
- the value of the
nbErrors
record component
-