Class IShortList.IShortListableFromCollection
java.lang.Object
org.magicwerk.brownies.collections.primitive.IShortList.IShortListableFromCollection
- All Implemented Interfaces:
IShortListable
- Enclosing class:
IShortList
protected static class IShortList.IShortListableFromCollection
extends Object
implements IShortListable
Wrapper to treat a
Collection
as IShortListable
.
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
-
IShortListableFromCollection
IShortListableFromCollection(Collection<Short> coll)
-
-
Method Details
-
size
public int size()- Specified by:
size
in interfaceIShortListable
-
get
public short get(int index) - Specified by:
get
in interfaceIShortListable
-