org.opends.server.core
Class RFC3672SubtreeSpecification.OrRefinement

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

public static final class RFC3672SubtreeSpecification.OrRefinement
extends RFC3672SubtreeSpecification.Refinement

RFC 3672 subtree specification OR refinement. This type of refinement filters entries based on at least one of the underlying refinements being true.


Constructor Summary
RFC3672SubtreeSpecification.OrRefinement(java.util.Collection<RFC3672SubtreeSpecification.Refinement> refinementSet)
          Create a new OR 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.OrRefinement

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

Parameters:
refinementSet - The set of refinements of which at least one must 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