|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthealpix.core.base.set.LongCollection
healpix.core.base.set.LongList
public class LongList
Growable long[] array
Constructor Summary | |
---|---|
LongList()
|
|
LongList(long[] set)
|
|
LongList(LongCollection set)
|
|
LongList(LongRangeSet longRangeSet)
|
Method Summary | |
---|---|
void |
add(int index,
long v)
|
void |
add(long v)
Add value to set |
void |
clear()
remove all iterms from set |
boolean |
contains(long v)
|
int |
ensureCapacity(int capacity)
Ensures that this list has at least a specified capacity. |
long |
get(int index)
|
int |
indexOf(long c)
|
boolean |
isEmpty()
Return true if set is empty. |
LongIterator |
longIterator()
|
void |
remove(long v)
remove given element from set |
long |
removeElementAt(int index)
|
long |
set(int index,
long v)
|
int |
size()
Count elements in set. |
LongList |
sort()
|
Methods inherited from class healpix.core.base.set.LongCollection |
---|
addAll, addAll, addAll, addAll, addRange, iterator, toArray, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LongList(LongRangeSet longRangeSet)
public LongList()
public LongList(LongCollection set)
public LongList(long[] set)
Method Detail |
---|
public void add(long v)
LongCollection
add
in class LongCollection
v
- value to addpublic void clear()
LongCollection
clear
in class LongCollection
public LongIterator longIterator()
longIterator
in class LongCollection
public int size()
LongCollection
size
in class LongCollection
public boolean isEmpty()
LongCollection
isEmpty
in class LongCollection
public boolean contains(long v)
contains
in class LongCollection
v
- value
public int indexOf(long c)
public void remove(long v)
LongCollection
remove
in class LongCollection
v
- to removepublic void add(int index, long v)
public long get(int index)
public long set(int index, long v)
public long removeElementAt(int index)
public int ensureCapacity(int capacity)
capacity
- the minimum capacity of this list.
public LongList sort()
|
"Built from revision exported" | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |