Class AbstractCharListIterator
- java.lang.Object
-
- org.codelibs.jhighlight.fastutil.chars.AbstractCharIterator
-
- org.codelibs.jhighlight.fastutil.chars.AbstractCharBidirectionalIterator
-
- org.codelibs.jhighlight.fastutil.chars.AbstractCharListIterator
-
- All Implemented Interfaces:
Iterator<Character>,ListIterator<Character>,BidirectionalIterator<Character>,CharBidirectionalIterator,CharIterator,CharListIterator,ObjectBidirectionalIterator<Character>,ObjectIterator<Character>
- Direct Known Subclasses:
CharIterators.EmptyIterator,CharIterators.UnmodifiableListIterator
public abstract class AbstractCharListIterator extends AbstractCharBidirectionalIterator implements CharListIterator
An abstract class facilitating the creation of type-specific list iterators.This class provides trivial type-specific implementations of
set()andadd()which throw anUnsupportedOperationException. For primitive types, it also provides a trivial implementation ofset()andadd()that just invokes the type-specific one.- See Also:
ListIterator
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractCharListIterator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(char k)This method just throws anUnsupportedOperationException.voidadd(Character ok)Delegates to the corresponding type-specific method.voidset(char k)This method just throws anUnsupportedOperationException.voidset(Character ok)Delegates to the corresponding type-specific method.-
Methods inherited from class org.codelibs.jhighlight.fastutil.chars.AbstractCharBidirectionalIterator
back, previous, previousChar
-
Methods inherited from class org.codelibs.jhighlight.fastutil.chars.AbstractCharIterator
next, nextChar, remove, skip
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.codelibs.jhighlight.fastutil.BidirectionalIterator
hasPrevious, previous
-
Methods inherited from interface org.codelibs.jhighlight.fastutil.chars.CharBidirectionalIterator
back, previousChar
-
Methods inherited from interface org.codelibs.jhighlight.fastutil.chars.CharIterator
nextChar, skip
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Methods inherited from interface java.util.ListIterator
hasNext, hasPrevious, next, nextIndex, previous, previousIndex, remove
-
Methods inherited from interface org.codelibs.jhighlight.fastutil.objects.ObjectIterator
skip
-
-
-
-
Method Detail
-
set
public void set(Character ok)
Delegates to the corresponding type-specific method.- Specified by:
setin interfaceListIterator<Character>
-
add
public void add(Character ok)
Delegates to the corresponding type-specific method.- Specified by:
addin interfaceListIterator<Character>
-
set
public void set(char k)
This method just throws anUnsupportedOperationException.- Specified by:
setin interfaceCharListIterator
-
add
public void add(char k)
This method just throws anUnsupportedOperationException.- Specified by:
addin interfaceCharListIterator
-
-