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 java.lang.Object implements IFloatListable
Wrapper to treat aCollection
asIFloatListable
.Note that the implementation relies on the fact that the elements are only accessed sequentially.
-
-
Constructor Summary
Constructors Constructor Description IFloatListableFromCollection(java.util.Collection<java.lang.Float> coll)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description float
get(int index)
int
size()
-
-
-
Method Detail
-
size
public int size()
- Specified by:
size
in interfaceIFloatListable
-
get
public float get(int index)
- Specified by:
get
in interfaceIFloatListable
-
-