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