Package org.epics.util.array
Class SortedListView
- java.lang.Object
-
- org.epics.util.array.ListDouble
-
- org.epics.util.array.SortedListView
-
- All Implemented Interfaces:
CollectionDouble
,CollectionNumber
,ListNumber
public class SortedListView extends ListDouble
A sorted view of a list.- Author:
- carcassi
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getDouble(int index)
Returns the element at the specified position in this list casted to a double.ListInteger
getIndexes()
Returns the index map of the sorted view.int
size()
Returns the number of elements in the collection.-
Methods inherited from class org.epics.util.array.ListDouble
equals, getByte, getFloat, getInt, getLong, getShort, hashCode, iterator, setAll, setByte, setDouble, setFloat, setInt, setLong, setShort, subList, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.epics.util.array.CollectionNumber
toArray
-
-
-
-
Method Detail
-
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.- Parameters:
index
- position of the element to return- Returns:
- the element at the specified position in this list
-
size
public int size()
Description copied from interface:CollectionNumber
Returns the number of elements in the collection.- Returns:
- the number of elements in the collection
-
getIndexes
public ListInteger getIndexes()
Returns the index map of the sorted view.- Returns:
- a list of integers
-
-