|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectedu.umd.cloud9.util.array.ArrayListOfDoubles
edu.umd.cloud9.io.array.ArrayListOfDoublesWritable
public class ArrayListOfDoublesWritable
Writable extension of the ArrayListOfDoubles class.
| Constructor Summary | |
|---|---|
ArrayListOfDoublesWritable()
Constructs an ArrayListOfDoublesWritable object. |
|
ArrayListOfDoublesWritable(ArrayListOfDoublesWritable other)
Constructs a deep copy of the ArrayListOfDoublesWritable object given as parameter. |
|
ArrayListOfDoublesWritable(double[] arr)
Constructs a list from an array. |
|
ArrayListOfDoublesWritable(int initialCapacity)
Constructs an empty list with the specified initial capacity. |
|
| Method Summary | |
|---|---|
int |
compareTo(Object obj)
Elementwise comparison. |
static ArrayListOfDoublesWritable |
fromArrayListOfDoubles(ArrayListOfDoubles arr)
Creates an instance of this object from ArrayListOfDoubles. |
void |
readFields(DataInput in)
Deserializes this object. |
String |
toString()
|
void |
write(DataOutput out)
Serializes this object. |
| Methods inherited from class edu.umd.cloud9.util.array.ArrayListOfDoubles |
|---|
add, add, clear, clone, contains, ensureCapacity, get, getArray, indexOf, isEmpty, iterator, lastIndexOf, remove, set, setSize, size, sort, toString, trimToSize |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ArrayListOfDoublesWritable()
ArrayListOfDoublesWritable object.
public ArrayListOfDoublesWritable(ArrayListOfDoublesWritable other)
ArrayListOfDoublesWritable object given as parameter.
other - object to be copiedpublic ArrayListOfDoublesWritable(double[] arr)
arr - source arraypublic ArrayListOfDoublesWritable(int initialCapacity)
initialCapacity - the initial capacity of the list| Method Detail |
|---|
public int compareTo(Object obj)
compareTo in interface Comparableobj - other object this is compared againstpublic static ArrayListOfDoublesWritable fromArrayListOfDoubles(ArrayListOfDoubles arr)
ArrayListOfDoubles. Note that backing array is
cloned.
arr - source ArrayListOfDoubles
public void readFields(DataInput in)
throws IOException
readFields in interface Writablein - source for raw byte representation
IOExceptionpublic String toString()
toString in class ArrayListOfDoubles
public void write(DataOutput out)
throws IOException
write in interface Writableout - where to write the raw byte representation
IOException
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||