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 aCollection
asILongListable
.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 long
get(int index)
int
size()
-
-
-
Method Detail
-
size
public int size()
- Specified by:
size
in interfaceILongListable
-
get
public long get(int index)
- Specified by:
get
in interfaceILongListable
-
-