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 java.lang.Object implements ILongListable
Wrapper to treat aCollectionasILongListable.Note that the implementation relies on the fact that the elements are only accessed sequentially.
-
-
Constructor Summary
Constructors Constructor Description ILongListableFromCollection(java.util.Collection<java.lang.Long> coll)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longget(int index)intsize()
-
-
-
Method Detail
-
size
public int size()
- Specified by:
sizein interfaceILongListable
-
get
public long get(int index)
- Specified by:
getin interfaceILongListable
-
-