Package net.infonode.util.collection.map
Class EmptyIterator
- java.lang.Object
-
- net.infonode.util.collection.map.EmptyIterator
-
- All Implemented Interfaces:
ConstMapIterator
,MapIterator
public class EmptyIterator extends java.lang.Object implements MapIterator
-
-
Field Summary
Fields Modifier and Type Field Description static EmptyIterator
INSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
atEntry()
Returns true if the iterator points to an entry in the map.java.lang.Object
getKey()
Returns the key at the current map entry.java.lang.Object
getValue()
Returns the value at the current map entry.void
next()
Advance the iterator to the next entry.void
remove()
-
-
-
Field Detail
-
INSTANCE
public static final EmptyIterator INSTANCE
-
-
Method Detail
-
remove
public void remove()
- Specified by:
remove
in interfaceMapIterator
-
getKey
public java.lang.Object getKey()
Description copied from interface:ConstMapIterator
Returns the key at the current map entry.- Specified by:
getKey
in interfaceConstMapIterator
- Returns:
- the key at the current map entry
-
getValue
public java.lang.Object getValue()
Description copied from interface:ConstMapIterator
Returns the value at the current map entry.- Specified by:
getValue
in interfaceConstMapIterator
- Returns:
- the value at the current map entry
-
next
public void next()
Description copied from interface:ConstMapIterator
Advance the iterator to the next entry.- Specified by:
next
in interfaceConstMapIterator
-
atEntry
public boolean atEntry()
Description copied from interface:ConstMapIterator
Returns true if the iterator points to an entry in the map.- Specified by:
atEntry
in interfaceConstMapIterator
- Returns:
- true if the iterator points to an entry in the map
-
-