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 Object
implements IDoubleListable
Wrapper to treat a
Collection
as IDoubleListable
.
Note that the implementation relies on the fact that the elements are only accessed sequentially.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
iter
-
size
int size
-
-
Constructor Details
-
IDoubleListableFromCollection
IDoubleListableFromCollection(Collection<Double> coll)
-
-
Method Details
-
size
public int size()- Specified by:
size
in interfaceIDoubleListable
-
get
public double get(int index) - Specified by:
get
in interfaceIDoubleListable
-