Class IByteList.IByteListableFromCollection
java.lang.Object
org.magicwerk.brownies.collections.primitive.IByteList.IByteListableFromCollection
- All Implemented Interfaces:
IByteListable
- Enclosing class:
IByteList
protected static class IByteList.IByteListableFromCollection
extends Object
implements IByteListable
Wrapper to treat a
Collection
as IByteListable
.
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
-
IByteListableFromCollection
IByteListableFromCollection(Collection<Byte> coll)
-
-
Method Details
-
size
public int size()- Specified by:
size
in interfaceIByteListable
-
get
public byte get(int index) - Specified by:
get
in interfaceIByteListable
-