Package org.yamcs.studio.data.vtype
Class ListLong
java.lang.Object
org.yamcs.studio.data.vtype.ListLong
- All Implemented Interfaces:
CollectionLong
,CollectionNumber
,ListNumber
- Direct Known Subclasses:
ArrayLong
An ordered collection of
long
s.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
byte
getByte
(int index) Returns the element at the specified position in this list casted to a byte.double
getDouble
(int index) Returns the element at the specified position in this list casted to a double.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.short
getShort
(int index) Returns the element at the specified position in this list casted to a short.int
hashCode()
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.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.yamcs.studio.data.vtype.CollectionNumber
size
Methods inherited from interface org.yamcs.studio.data.vtype.ListNumber
getLong
-
Constructor Details
-
ListLong
public ListLong()
-
-
Method Details
-
iterator
Description copied from interface:CollectionNumber
Returns an iterator over the elements of the collection.- Specified by:
iterator
in interfaceCollectionLong
- Specified by:
iterator
in interfaceCollectionNumber
-
getDouble
public double getDouble(int index) Description copied from interface:ListNumber
Returns the element at the specified position in this list casted to a double.- Specified by:
getDouble
in interfaceListNumber
- Parameters:
index
- position of the element to return- Returns:
- the element at the specified position in this list
-
getFloat
public float getFloat(int index) Description copied from interface:ListNumber
Returns the element at the specified position in this list casted to a float.- Specified by:
getFloat
in interfaceListNumber
- Parameters:
index
- position of the element to return- Returns:
- the element at the specified position in this list
-
getInt
public int getInt(int index) Description copied from interface:ListNumber
Returns the element at the specified position in this list casted to an int.- Specified by:
getInt
in interfaceListNumber
- Parameters:
index
- position of the element to return- Returns:
- the element at the specified position in this list
-
getShort
public short getShort(int index) Description copied from interface:ListNumber
Returns the element at the specified position in this list casted to a short.- Specified by:
getShort
in interfaceListNumber
- Parameters:
index
- position of the element to return- Returns:
- the element at the specified position in this list
-
getByte
public byte getByte(int index) Description copied from interface:ListNumber
Returns the element at the specified position in this list casted to a byte.- Specified by:
getByte
in interfaceListNumber
- Parameters:
index
- position of the element to return- Returns:
- the element at the specified position in this list
-
setDouble
public void setDouble(int index, double value) Description copied from interface:ListNumber
Changes the element at the specified position, casting to the internal representation.- Specified by:
setDouble
in interfaceListNumber
- Parameters:
index
- position of the element to changevalue
- the new value
-
setFloat
public void setFloat(int index, float value) Description copied from interface:ListNumber
Changes the element at the specified position, casting to the internal representation.- Specified by:
setFloat
in interfaceListNumber
- Parameters:
index
- position of the element to changevalue
- the new value
-
setLong
public void setLong(int index, long value) Description copied from interface:ListNumber
Changes the element at the specified position, casting to the internal representation.- Specified by:
setLong
in interfaceListNumber
- Parameters:
index
- position of the element to changevalue
- the new value
-
setInt
public void setInt(int index, int value) Description copied from interface:ListNumber
Changes the element at the specified position, casting to the internal representation.- Specified by:
setInt
in interfaceListNumber
- Parameters:
index
- position of the element to changevalue
- the new value
-
setShort
public void setShort(int index, short value) Description copied from interface:ListNumber
Changes the element at the specified position, casting to the internal representation.- Specified by:
setShort
in interfaceListNumber
- Parameters:
index
- position of the element to changevalue
- the new value
-
setByte
public void setByte(int index, byte value) Description copied from interface:ListNumber
Changes the element at the specified position, casting to the internal representation.- Specified by:
setByte
in interfaceListNumber
- Parameters:
index
- position of the element to changevalue
- the new value
-
equals
-
hashCode
public int hashCode()
-