org.apache.james.mailboxmanager
Class SearchQuery.NumericOperator

java.lang.Object
  extended by org.apache.james.mailboxmanager.SearchQuery.NumericOperator
All Implemented Interfaces:
SearchQuery.Operator
Enclosing class:
SearchQuery

public static final class SearchQuery.NumericOperator
extends java.lang.Object
implements SearchQuery.Operator

Searches numberic values.


Field Summary
static int EQUALS
           
static int GREATER_THAN
           
static int LESS_THAN
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 int getType()
          Gets the operation type
 long getValue()
          Gets the value to be compared.
 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
 

Field Detail

EQUALS

public static final int EQUALS
See Also:
Constant Field Values

LESS_THAN

public static final int LESS_THAN
See Also:
Constant Field Values

GREATER_THAN

public static final int GREATER_THAN
See Also:
Constant Field Values
Method Detail

getType

public final int getType()
Gets the operation type

Returns:
the type either EQUALS, LESS_THAN or GREATER_THAN

getValue

public final long getValue()
Gets the value to be compared.

Returns:
the value

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-2008 The Apache Software Foundation. All Rights Reserved.