public abstract class ListDouble extends Object implements ListNumber, CollectionDouble
double
s.Constructor and Description |
---|
ListDouble() |
Modifier and Type | Method and Description |
---|---|
static ListDouble |
concatenate(ListNumber... lists)
Concatenates a several lists of numbers into a single list
|
boolean |
equals(Object obj) |
byte |
getByte(int index)
Returns the element at the specified position in this list casted to a byte.
|
float |
getFloat(int index)
Returns the element at the specified position in this list casted to a float.
|
int |
getInt(int index)
Returns the element at the specified position in this list casted to an int.
|
long |
getLong(int index)
Returns the element at the specified position in this list casted to a long.
|
short |
getShort(int index)
Returns the element at the specified position in this list casted to a short.
|
int |
hashCode() |
IteratorDouble |
iterator()
Returns an iterator over the elements of the collection.
|
void |
setByte(int index,
byte value)
Changes the element at the specified position, casting to the internal
representation.
|
void |
setDouble(int index,
double value)
Changes the element at the specified position, casting to the internal
representation.
|
void |
setFloat(int index,
float value)
Changes the element at the specified position, casting to the internal
representation.
|
void |
setInt(int index,
int value)
Changes the element at the specified position, casting to the internal
representation.
|
void |
setLong(int index,
long value)
Changes the element at the specified position, casting to the internal
representation.
|
void |
setShort(int index,
short value)
Changes the element at the specified position, casting to the internal
representation.
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getDouble
size
public IteratorDouble iterator()
CollectionNumber
iterator
in interface CollectionDouble
iterator
in interface CollectionNumber
public float getFloat(int index)
ListNumber
getFloat
in interface ListNumber
index
- position of the element to returnpublic long getLong(int index)
ListNumber
getLong
in interface ListNumber
index
- position of the element to returnpublic int getInt(int index)
ListNumber
getInt
in interface ListNumber
index
- position of the element to returnpublic short getShort(int index)
ListNumber
getShort
in interface ListNumber
index
- position of the element to returnpublic byte getByte(int index)
ListNumber
getByte
in interface ListNumber
index
- position of the element to returnpublic void setDouble(int index, double value)
ListNumber
setDouble
in interface ListNumber
index
- position of the element to changevalue
- the new valuepublic void setFloat(int index, float value)
ListNumber
setFloat
in interface ListNumber
index
- position of the element to changevalue
- the new valuepublic void setLong(int index, long value)
ListNumber
setLong
in interface ListNumber
index
- position of the element to changevalue
- the new valuepublic void setInt(int index, int value)
ListNumber
setInt
in interface ListNumber
index
- position of the element to changevalue
- the new valuepublic void setShort(int index, short value)
ListNumber
setShort
in interface ListNumber
index
- position of the element to changevalue
- the new valuepublic void setByte(int index, byte value)
ListNumber
setByte
in interface ListNumber
index
- position of the element to changevalue
- the new valuepublic static ListDouble concatenate(ListNumber... lists)
lists
- the lists to concatenateCopyright © 2015. All rights reserved.