java.lang.Object
com.ibm.dtfj.phd.util.PrimitiveArray
com.ibm.dtfj.phd.util.LongArray
- All Implemented Interfaces:
SortListener
,Serializable
Similar to IntegerArray but for longs.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(int index, long value) void
add
(long value) clone()
Answers a new instance of the same class as the receiver, whose slots have been filled in with the values in the slots of the receiver.long
get
(int index) int
void
put
(int index, long value) void
putAll
(long value) long[]
toArray()
Methods declared in class com.ibm.dtfj.phd.util.PrimitiveArray
indexOf, indexOf, nearestIndexOf, reverseSort, reverseSort, setSize, size, sort, sort, sort, sort, swap
-
Constructor Details
-
LongArray
public LongArray() -
LongArray
public LongArray(int length) -
LongArray
public LongArray(int length, long value)
-
-
Method Details
-
clone
Description copied from class:java.lang.Object
Answers a new instance of the same class as the receiver, whose slots have been filled in with the values in the slots of the receiver.Classes which wish to support cloning must specify that they implement the Cloneable interface, since the native implementation checks for this.
-
toArray
public long[] toArray() -
add
public void add(long value) -
get
public long get(int index) -
put
public void put(int index, long value) -
add
public void add(int index, long value) -
putAll
public void putAll(long value) -
memoryUsage
public int memoryUsage()
-