org.apache.james.mailbox
Class SearchQuery.ConjunctionCriterion

java.lang.Object
  extended by org.apache.james.mailbox.SearchQuery.Criterion
      extended by org.apache.james.mailbox.SearchQuery.ConjunctionCriterion
Enclosing class:
SearchQuery

public static final class SearchQuery.ConjunctionCriterion
extends SearchQuery.Criterion

Conjuction applying to the contained criteria. getType() indicates how the conjoined criteria should be related.


Constructor Summary
SearchQuery.ConjunctionCriterion(SearchQuery.Conjunction type, java.util.List<SearchQuery.Criterion> criteria)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.util.List<SearchQuery.Criterion> getCriteria()
          Gets the criteria related through this conjuction.
 SearchQuery.Conjunction getType()
          Gets the type of conjunction.
 int hashCode()
           
 java.lang.String toString()
          Constructs a String with all attributes in name = value format.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SearchQuery.ConjunctionCriterion

public SearchQuery.ConjunctionCriterion(SearchQuery.Conjunction type,
                                        java.util.List<SearchQuery.Criterion> criteria)
Method Detail

getCriteria

public final java.util.List<SearchQuery.Criterion> getCriteria()
Gets the criteria related through this conjuction.

Returns:
List of SearchQuery.Criterion

getType

public final SearchQuery.Conjunction getType()
Gets the type of conjunction.

Returns:
not null

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object
See Also:
Object.hashCode()

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object
See Also:
Object.equals(java.lang.Object)

toString

public java.lang.String toString()
Constructs a String with all attributes in name = value format.

Overrides:
toString in class java.lang.Object
Returns:
a String representation of this object.


Copyright © 2002-2010 The Apache Software Foundation. All Rights Reserved.