Package com.uwyn.jhighlight.pcj.map
Interface CharKeyMapIterator
public interface CharKeyMapIterator
This interface represents iterators over maps from
char values to objects.
- Since:
- 1.0
- Version:
- 1.0 2003/6/1
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionchar
getKey()
Returns the key of the current entry of this iterator.getValue()
Returns the value of the current entry of this iterator.boolean
hasNext()
Indicates whether more entries can be returned by this iterator.void
next()
Advances to the next entry of this iterator.void
remove()
Removes the last entry value returned from the underlying map.
-
Method Details
-
hasNext
boolean hasNext()Indicates whether more entries can be returned by this iterator.- Returns:
- true if more char entries can be returned by this iterator; returns false otherwise.
- See Also:
-
next
void next()Advances to the next entry of this iterator.- Throws:
NoSuchElementException
- if no more entries are available from this iterator.- See Also:
-
remove
void remove()Removes the last entry value returned from the underlying map.- Throws:
UnsupportedOperationException
- if removal is not supported by this iterator.IllegalStateException
- if no entry has been returned by this iterator yet.
-
getKey
char getKey()Returns the key of the current entry of this iterator.- Returns:
- the key of the current entry of this iterator.
- Throws:
IllegalStateException
- if there is no current entry (i.e. ifnext()
has not been called orremove()
has just been called.- See Also:
-
getValue
Object getValue()Returns the value of the current entry of this iterator.- Returns:
- the value of the current entry of this iterator (which may be null).
- Throws:
IllegalStateException
- if there is no current entry (i.e. ifnext()
has not been called orremove()
has just been called.- See Also:
-