NASA - Jet Propulsion Laboratory
    + View the NASA Portal
Search JPL
Jet Propulsion Laboratory Home Earth Solar System Stars & Galaxies Technology
Introduction Background Software Links


healpix.core.base.set
Class LongList

java.lang.Object
  extended by healpix.core.base.set.LongCollection
      extended by 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

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

LongList

public LongList(LongRangeSet longRangeSet)

LongList

public LongList()

LongList

public LongList(LongCollection set)

LongList

public LongList(long[] set)
Method Detail

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

"Built from revision exported"

Privacy / Copyright
FIRST GOV Contact: NASA Home Page Site Manager:
Webmaster:

CL 03-2650