- java.lang.Object
-
- swim.structure.collections.ValueEntryCursor<K,V>
-
- All Implemented Interfaces:
Iterator<Map.Entry<K,V>>
,ListIterator<Map.Entry<K,V>>
,Cursor<Map.Entry<K,V>>
- Direct Known Subclasses:
ValueOrderedMapCursor
public class ValueEntryCursor<K,V> extends Object implements Cursor<Map.Entry<K,V>>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(Map.Entry<K,V> newEntry)
boolean
hasNext()
boolean
hasPrevious()
Map.Entry<K,V>
head()
Cursor<Map.Entry<Value,Value>>
inner()
boolean
isEmpty()
<K2> ValueEntryCursor<K2,V>
keyClass(Class<K2> keyClass)
Form<K>
keyForm()
<K2> ValueEntryCursor<K2,V>
keyForm(Form<K2> keyForm)
void
load()
Map.Entry<K,V>
next()
int
nextIndex()
long
nextIndexLong()
Map.Entry<K,V>
previous()
int
previousIndex()
long
previousIndexLong()
void
remove()
void
set(Map.Entry<K,V> newEntry)
void
skip(long count)
void
step()
<V2> ValueEntryCursor<K,V2>
valueClass(Class<V2> valueClass)
Form<V>
valueForm()
<V2> ValueEntryCursor<K,V2>
valueForm(Form<V2> valueForm)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Method Detail
-
keyForm
public <K2> ValueEntryCursor<K2,V> keyForm(Form<K2> keyForm)
-
keyClass
public <K2> ValueEntryCursor<K2,V> keyClass(Class<K2> keyClass)
-
valueForm
public <V2> ValueEntryCursor<K,V2> valueForm(Form<V2> valueForm)
-
valueClass
public <V2> ValueEntryCursor<K,V2> valueClass(Class<V2> valueClass)
-
hasNext
public boolean hasNext()
-
nextIndexLong
public long nextIndexLong()
- Specified by:
nextIndexLong
in interfaceCursor<K>
-
nextIndex
public int nextIndex()
-
hasPrevious
public boolean hasPrevious()
- Specified by:
hasPrevious
in interfaceCursor<K>
- Specified by:
hasPrevious
in interfaceListIterator<K>
-
previousIndexLong
public long previousIndexLong()
- Specified by:
previousIndexLong
in interfaceCursor<K>
-
previousIndex
public int previousIndex()
- Specified by:
previousIndex
in interfaceCursor<K>
- Specified by:
previousIndex
in interfaceListIterator<K>
-
remove
public void remove()
-
-