org.opends.server.core
Class RFC3672SubtreeSpecification.AndRefinement

java.lang.Object
  extended by org.opends.server.core.RFC3672SubtreeSpecification.Refinement
      extended by org.opends.server.core.RFC3672SubtreeSpecification.AndRefinement
Enclosing class:
RFC3672SubtreeSpecification

public static final class RFC3672SubtreeSpecification.AndRefinement
extends RFC3672SubtreeSpecification.Refinement

RFC 3672 subtree specification AND refinement. This type of refinement filters entries based on all of the underlying refinements being true.


Constructor Summary
RFC3672SubtreeSpecification.AndRefinement(java.util.Collection<RFC3672SubtreeSpecification.Refinement> refinementSet)
          Create a new AND refinement.
 
Method Summary
 boolean equals(java.lang.Object obj)
          
 int hashCode()
          
 boolean matches(Entry entry)
          Check if the refinement matches the given entry.
 java.lang.StringBuilder toString(java.lang.StringBuilder builder)
          Append the string representation of the refinement to the provided string builder.
 
Methods inherited from class org.opends.server.core.RFC3672SubtreeSpecification.Refinement
toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RFC3672SubtreeSpecification.AndRefinement

public RFC3672SubtreeSpecification.AndRefinement(java.util.Collection<RFC3672SubtreeSpecification.Refinement> refinementSet)
Create a new AND refinement.

Parameters:
refinementSet - The set of refinements which must all be true.
Method Detail

matches

public boolean matches(Entry entry)
Check if the refinement matches the given entry.

Specified by:
matches in class RFC3672SubtreeSpecification.Refinement
Parameters:
entry - The filterable entry.
Returns:
Returns true if the entry matches the refinement, or false otherwise.

toString

public java.lang.StringBuilder toString(java.lang.StringBuilder builder)
Append the string representation of the refinement to the provided string builder.

Specified by:
toString in class RFC3672SubtreeSpecification.Refinement
Parameters:
builder - The string builder.
Returns:
The string builder.

equals

public boolean equals(java.lang.Object obj)

Specified by:
equals in class RFC3672SubtreeSpecification.Refinement

hashCode

public int hashCode()

Specified by:
hashCode in class RFC3672SubtreeSpecification.Refinement