Package org.forgerock.opendj.ldap
Class SubtreeSpecification.FilterRefinement
java.lang.Object
org.forgerock.opendj.ldap.SubtreeSpecification.Refinement
org.forgerock.opendj.ldap.SubtreeSpecification.FilterRefinement
- Enclosing class:
- SubtreeSpecification
public static final class SubtreeSpecification.FilterRefinement
extends SubtreeSpecification.Refinement
A refinement which uses a search filter.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the search filter for this filter refinement.inthashCode()booleanCheck if the refinement matches the given entry.toString(StringBuilder builder) Append the string representation of the refinement to the provided string builder.Methods inherited from class org.forgerock.opendj.ldap.SubtreeSpecification.Refinement
toString
-
Constructor Details
-
FilterRefinement
Create a new filter refinement.- Parameters:
filter- The search filter.
-
-
Method Details
-
equals
- Specified by:
equalsin classSubtreeSpecification.Refinement
-
getFilter
Returns the search filter for this filter refinement.- Returns:
- the search filter
-
hashCode
public int hashCode()- Specified by:
hashCodein classSubtreeSpecification.Refinement
-
matches
Description copied from class:SubtreeSpecification.RefinementCheck if the refinement matches the given entry.- Specified by:
matchesin classSubtreeSpecification.Refinement- Parameters:
entry- the filterable entry.schema- the schema to use- Returns:
- whether the entry matches the refinement
-
toString
Description copied from class:SubtreeSpecification.RefinementAppend the string representation of the refinement to the provided string builder.- Specified by:
toStringin classSubtreeSpecification.Refinement- Parameters:
builder- The string builder.- Returns:
- The string builder.
-