public static class CharIterators.EmptyIterator extends AbstractCharListIterator implements Serializable, Cloneable
This class may be useful to implement your own in case you subclass a type-specific iterator.
| 修飾子 | コンストラクタと説明 |
|---|---|
protected |
CharIterators.EmptyIterator() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
int |
back(int n)
This method just iterates the type-specific version of
AbstractCharBidirectionalIterator.previous() for
at most n times, stopping if BidirectionalIterator.hasPrevious() becomes false. |
Object |
clone() |
boolean |
hasNext() |
boolean |
hasPrevious()
Returns whether there is a previous element.
|
char |
nextChar()
Delegates to the corresponding generic method.
|
int |
nextIndex() |
char |
previousChar()
Delegates to the corresponding generic method.
|
int |
previousIndex() |
int |
skip(int n)
This method just iterates the type-specific version of
AbstractCharIterator.next() for at most
n times, stopping if Iterator.hasNext() becomes false. |
add, add, set, setpreviousnext, removeequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnext, previous, removepreviouspublic boolean hasNext()
public boolean hasPrevious()
BidirectionalIteratorhasPrevious インタフェース内 BidirectionalIterator<Character>hasPrevious インタフェース内 ListIterator<Character>ListIterator.hasPrevious()public char nextChar()
AbstractCharIteratornextChar インタフェース内 CharIteratornextChar クラス内 AbstractCharIteratorIterator.next()public char previousChar()
AbstractCharBidirectionalIteratorpreviousChar インタフェース内 CharBidirectionalIteratorpreviousChar クラス内 AbstractCharBidirectionalIteratorListIterator.previous()public int nextIndex()
nextIndex インタフェース内 ListIterator<Character>public int previousIndex()
previousIndex インタフェース内 ListIterator<Character>public int skip(int n)
AbstractCharIteratorAbstractCharIterator.next() for at most
n times, stopping if Iterator.hasNext() becomes false.skip インタフェース内 CharIteratorskip インタフェース内 ObjectIterator<Character>skip クラス内 AbstractCharIteratorn - the number of elements to skip.Iterator.next()public int back(int n)
AbstractCharBidirectionalIteratorAbstractCharBidirectionalIterator.previous() for
at most n times, stopping if BidirectionalIterator.hasPrevious() becomes false.back インタフェース内 CharBidirectionalIteratorback インタフェース内 ObjectBidirectionalIterator<Character>back クラス内 AbstractCharBidirectionalIteratorn - the number of elements to skip back.Iterator.next()Copyright © 2011-2015. All Rights Reserved.