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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of thehasGlobalErrorrecord component.final inthashCode()Returns a hash code value for this object.intnbErrors()Returns the value of thenbErrorsrecord component.Returns the value of thesearchResultsrecord component.final StringtoString()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 aLDAPCollectionHelperSearchResultrecord class.- Parameters:
searchResults- the value for thesearchResultsrecord componenthasGlobalError- the value for thehasGlobalErrorrecord componentnbErrors- the value for thenbErrorsrecord 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 thesearchResultsrecord component.- Returns:
- the value of the
searchResultsrecord component
-
hasGlobalError
Returns the value of thehasGlobalErrorrecord component.- Returns:
- the value of the
hasGlobalErrorrecord component
-
nbErrors
Returns the value of thenbErrorsrecord component.- Returns:
- the value of the
nbErrorsrecord component
-