Class ICharList.ICharListableFromCollection
java.lang.Object
org.magicwerk.brownies.collections.primitive.ICharList.ICharListableFromCollection
- All Implemented Interfaces:
ICharListable
- Enclosing class:
ICharList
protected static class ICharList.ICharListableFromCollection
extends Object
implements ICharListable
Wrapper to treat a
Collection
as ICharListable
.
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
-
ICharListableFromCollection
ICharListableFromCollection(Collection<Character> coll)
-
-
Method Details
-
size
public int size()- Specified by:
size
in interfaceICharListable
-
get
public char get(int index) - Specified by:
get
in interfaceICharListable
-