public final class IdRange extends Object implements Iterable<Long>, Comparable<IdRange>
| Constructor and Description | 
|---|
IdRange(long singleVal)  | 
IdRange(long lowVal,
       long highVal)  | 
| Modifier and Type | Method and Description | 
|---|---|
int | 
compareTo(IdRange range2)  | 
boolean | 
equals(Object obj)  | 
String | 
getFormattedString()  | 
long | 
getHighVal()  | 
long | 
getLowVal()  | 
int | 
hashCode()  | 
boolean | 
includes(long value)
Return true if the  
IdRange includes the given value | 
Iterator<Long> | 
iterator()
Return a read-only  
Iterator which contains all msn/uid which fail in the specified range. | 
static List<IdRange> | 
mergeRanges(List<IdRange> ranges)
 | 
void | 
setHighVal(long highVal)  | 
void | 
setLowVal(long lowVal)  | 
String | 
toString()
Renders text suitable for logging. 
 | 
public IdRange(long singleVal)
public IdRange(long lowVal,
       long highVal)
public long getLowVal()
public long getHighVal()
public void setLowVal(long lowVal)
public void setHighVal(long highVal)
public boolean includes(long value)
IdRange includes the given valuevalue - public int hashCode()
hashCode in class ObjectObject.hashCode()public boolean equals(Object obj)
equals in class ObjectObject.equals(java.lang.Object)public String toString()
public String getFormattedString()
public static List<IdRange> mergeRanges(List<IdRange> ranges)
List and try to merge
 the IdRange in the copy before return it.ranges - public Iterator<Long> iterator()
Iterator which contains all msn/uid which fail in the specified range.public int compareTo(IdRange range2)
compareTo in interface Comparable<IdRange>Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.