org.apache.james.mailboxmanager
Class SearchQuery.NumericRange
java.lang.Object
org.apache.james.mailboxmanager.SearchQuery.NumericRange
- Enclosing class:
- SearchQuery
public static final class SearchQuery.NumericRange
- extends java.lang.Object
Numbers within a particular range. Range includes both high and low
boundaries. May be a single value. Long.MAX_VALUE
represents
unlimited in either direction.
Method Summary |
boolean |
equals(java.lang.Object obj)
|
long |
getHighValue()
|
long |
getLowValue()
|
int |
hashCode()
|
boolean |
isIn(long value)
Is the given value in this range? |
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 |
SearchQuery.NumericRange
public SearchQuery.NumericRange(long value)
SearchQuery.NumericRange
public SearchQuery.NumericRange(long lowValue,
long highValue)
getHighValue
public final long getHighValue()
getLowValue
public final long getLowValue()
isIn
public boolean isIn(long value)
- Is the given value in this range?
- Parameters:
value
- value to be tested
- Returns:
- true if the value is in range, false otherwise
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.