com.openexchange.mail
Class IndexRange

java.lang.Object
  extended by com.openexchange.mail.IndexRange

public final class IndexRange
extends java.lang.Object

IndexRange - A simple class representing an index range.

Author:
Thorben Betten

Field Summary
 int end
          The end index
static IndexRange NULL
          The null index range
 int start
          The start index
 
Constructor Summary
IndexRange(int start, int end)
          Initializes a new IndexRange
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 int getEnd()
          Gets the end index
 int getStart()
          Gets the start index
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

NULL

public static final IndexRange NULL
The null index range


start

public final int start
The start index


end

public final int end
The end index

Constructor Detail

IndexRange

public IndexRange(int start,
                  int end)
Initializes a new IndexRange

Method Detail

hashCode

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

equals

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

getStart

public int getStart()
Gets the start index

Returns:
The start index

getEnd

public int getEnd()
Gets the end index

Returns:
The end index

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object