|
healpix.core.base.set
Class LongList
java.lang.Object
healpix.core.base.set.LongCollection
healpix.core.base.set.LongList
- All Implemented Interfaces:
- Serializable, Iterable<Long>
public class LongList - extends LongCollection
- implements Serializable
Growable long[] array
- See Also:
- Serialized Form
LongList
public LongList(LongRangeSet longRangeSet)
LongList
public LongList()
LongList
public LongList(LongCollection set)
LongList
public LongList(long[] set)
add
public void add(long v)
- Description copied from class:
LongCollection
- Add value to set
- Specified by:
add in class LongCollection
- Parameters:
v - value to add
clear
public void clear()
- Description copied from class:
LongCollection
- remove all iterms from set
- Specified by:
clear in class LongCollection
longIterator
public LongIterator longIterator()
- Specified by:
longIterator in class LongCollection
- Returns:
- iterator LongIterator over values in this set with primitive long
size
public int size()
- Description copied from class:
LongCollection
- Count elements in set.
- Specified by:
size in class LongCollection
- Returns:
- number of elements in this set
isEmpty
public boolean isEmpty()
- Description copied from class:
LongCollection
- Return true if set is empty.
- Specified by:
isEmpty in class LongCollection
- Returns:
- true if size is empty
contains
public boolean contains(long v)
- Specified by:
contains in class LongCollection
- Parameters:
v - value
- Returns:
- true if set contains given value
indexOf
public int indexOf(long c)
remove
public void remove(long v)
- Description copied from class:
LongCollection
- remove given element from set
- Specified by:
remove in class LongCollection
- Parameters:
v - to remove
add
public void add(int index,
long v)
get
public long get(int index)
set
public long set(int index,
long v)
removeElementAt
public long removeElementAt(int index)
ensureCapacity
public int ensureCapacity(int capacity)
- Ensures that this list has at least a specified capacity.
The actual capacity is calculated from the growth factor
or growth chunk specified to the constructor.
- Parameters:
capacity - the minimum capacity of this list.
- Returns:
- the new capacity of this list.
sort
public LongList sort()
- Returns:
- this array list, but sorted
|
|