Package org.yamcs.studio.data.vtype
Class ListByte
java.lang.Object
org.yamcs.studio.data.vtype.ListByte
- All Implemented Interfaces:
CollectionByte
,CollectionNumber
,ListNumber
- Direct Known Subclasses:
ArrayByte
An ordered collection of
byte
s.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
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.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()
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
getByte
-
Constructor Details
-
ListByte
public ListByte()
-
-
Method Details
-
iterator
Description copied from interface:CollectionNumber
Returns an iterator over the elements of the collection.- Specified by:
iterator
in interfaceCollectionByte
- 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
-
getLong
public long getLong(int index) Description copied from interface:ListNumber
Returns the element at the specified position in this list casted to a long.- Specified by:
getLong
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
-
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()
-