Class ILongList.ILongListableFromCollection
java.lang.Object
org.magicwerk.brownies.collections.primitive.ILongList.ILongListableFromCollection
- All Implemented Interfaces:
ILongListable
- Enclosing class:
ILongList
protected static class ILongList.ILongListableFromCollection
extends Object
implements ILongListable
Wrapper to treat a
Collection
as ILongListable
.
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
-
ILongListableFromCollection
ILongListableFromCollection(Collection<Long> coll)
-
-
Method Details
-
size
public int size()- Specified by:
size
in interfaceILongListable
-
get
public long get(int index) - Specified by:
get
in interfaceILongListable
-