|
|||||||||||||||||||
healpix.core.base.set
|
Field Summary | |
---|---|
static LongRangeSet |
EMPTY
empty LongRangeSet |
Constructor Summary | |
---|---|
LongRangeSetBuilder()
|
|
LongRangeSetBuilder(int arraySize)
construct new builder with given array size |
Method Summary | |
---|---|
void |
append(long first)
append single long into builder |
void |
appendRange(long first,
long last)
append range into builder |
void |
appendRanges(LongRangeIterator iter)
appends all ranges from iterator |
void |
appendRangeSet(LongRangeSet set)
append all ranges from given LongRangeSet |
LongRangeSet |
build()
Construct new LongRangeSet from appended values * |
void |
ensureSize(int arraySize)
make sure underling array have at least given size |
long |
last()
|
long |
lastFirst()
|
int |
size()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final LongRangeSet EMPTY
Constructor Detail |
---|
public LongRangeSetBuilder()
public LongRangeSetBuilder(int arraySize)
size
- Method Detail |
---|
public void ensureSize(int arraySize)
public void append(long first)
first
- - long to appendpublic void appendRange(long first, long last)
first
- long in range (inclusive)last
- long in range(inclusive)public long last()
public long lastFirst()
public void appendRanges(LongRangeIterator iter)
iter
- LongRangeIteratorpublic void appendRangeSet(LongRangeSet set)
set
- LongRangeSet to appendpublic int size()
public LongRangeSet build()
|
"Built from revision exported" | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
|
||||||
|
||||||