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