Class IFloatList.IFloatListableFromCollection
java.lang.Object
org.magicwerk.brownies.collections.primitive.IFloatList.IFloatListableFromCollection
- All Implemented Interfaces:
IFloatListable
- Enclosing class:
IFloatList
protected static class IFloatList.IFloatListableFromCollection
extends Object
implements IFloatListable
Wrapper to treat a
Collection
as IFloatListable
.
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
-
IFloatListableFromCollection
IFloatListableFromCollection(Collection<Float> coll)
-
-
Method Details
-
size
public int size()- Specified by:
size
in interfaceIFloatListable
-
get
public float get(int index) - Specified by:
get
in interfaceIFloatListable
-