org.apache.james.api.imap.message
Class IdRange

java.lang.Object
  extended by org.apache.james.api.imap.message.IdRange

public class IdRange
extends java.lang.Object

Represents a range of UID values.


Constructor Summary
IdRange(long singleVal)
           
IdRange(long lowVal, long highVal)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 long getHighVal()
           
 long getLowVal()
           
 int hashCode()
           
 boolean includes(long uid)
           
 java.lang.String toString()
          Renders text suitable for logging.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IdRange

public IdRange(long singleVal)

IdRange

public IdRange(long lowVal,
               long highVal)
Method Detail

getLowVal

public long getLowVal()

getHighVal

public long getHighVal()

includes

public boolean includes(long uid)

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()
Renders text suitable for logging.

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


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