Package org.opends.server.types
Class SubtreeSpecification.FilterRefinement
- java.lang.Object
-
- org.opends.server.types.SubtreeSpecification.Refinement
-
- org.opends.server.types.SubtreeSpecification.FilterRefinement
-
- Enclosing class:
- SubtreeSpecification
public static final class SubtreeSpecification.FilterRefinement extends SubtreeSpecification.Refinement
A refinement which uses a search filter.
-
-
Constructor Summary
Constructors Constructor Description FilterRefinement(Filter filter)Create a new filter refinement.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)FiltergetFilter()Returns the search filter for this filter refinement.inthashCode()booleanmatches(Entry entry, Schema schema)Check if the refinement matches the given entry.StringBuildertoString(StringBuilder builder)Append the string representation of the refinement to the provided string builder.-
Methods inherited from class org.opends.server.types.SubtreeSpecification.Refinement
toString
-
-
-
-
Constructor Detail
-
FilterRefinement
public FilterRefinement(Filter filter)
Create a new filter refinement.- Parameters:
filter- The search filter.
-
-
Method Detail
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin classSubtreeSpecification.Refinement
-
getFilter
public Filter getFilter()
Returns the search filter for this filter refinement.- Returns:
- the search filter
-
hashCode
public int hashCode()
- Specified by:
hashCodein classSubtreeSpecification.Refinement
-
matches
public boolean matches(Entry entry, Schema schema)
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
public StringBuilder toString(StringBuilder builder)
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.
-
-