Class IIntList.IIntListableFromCollection
java.lang.Object
org.magicwerk.brownies.collections.primitive.IIntList.IIntListableFromCollection
- All Implemented Interfaces:
IIntListable
- Enclosing class:
IIntList
Wrapper to treat a
Collection
as IIntListable
.
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
-
IIntListableFromCollection
IIntListableFromCollection(Collection<Integer> coll)
-
-
Method Details
-
size
public int size()- Specified by:
size
in interfaceIIntListable
-
get
public int get(int index) - Specified by:
get
in interfaceIIntListable
-