Class IDoubleList.IDoubleListableFromCollection
- java.lang.Object
-
- org.magicwerk.brownies.collections.primitive.IDoubleList.IDoubleListableFromCollection
-
- All Implemented Interfaces:
IDoubleListable
- Enclosing class:
- IDoubleList
protected static class IDoubleList.IDoubleListableFromCollection extends java.lang.Object implements IDoubleListable
Wrapper to treat aCollection
asIDoubleListable
.Note that the implementation relies on the fact that the elements are only accessed sequentially.
-
-
Constructor Summary
Constructors Constructor Description IDoubleListableFromCollection(java.util.Collection<java.lang.Double> coll)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
get(int index)
int
size()
-
-
-
Method Detail
-
size
public int size()
- Specified by:
size
in interfaceIDoubleListable
-
get
public double get(int index)
- Specified by:
get
in interfaceIDoubleListable
-
-