- 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 voidadd(Map.Entry<K,V> newEntry)booleanhasNext()booleanhasPrevious()Map.Entry<K,V>head()Cursor<Map.Entry<Value,Value>>inner()booleanisEmpty()<K2> ValueEntryCursor<K2,V>keyClass(Class<K2> keyClass)Form<K>keyForm()<K2> ValueEntryCursor<K2,V>keyForm(Form<K2> keyForm)voidload()Map.Entry<K,V>next()intnextIndex()longnextIndexLong()Map.Entry<K,V>previous()intpreviousIndex()longpreviousIndexLong()voidremove()voidset(Map.Entry<K,V> newEntry)voidskip(long count)voidstep()<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:
nextIndexLongin interfaceCursor<K>
-
nextIndex
public int nextIndex()
-
hasPrevious
public boolean hasPrevious()
- Specified by:
hasPreviousin interfaceCursor<K>- Specified by:
hasPreviousin interfaceListIterator<K>
-
previousIndexLong
public long previousIndexLong()
- Specified by:
previousIndexLongin interfaceCursor<K>
-
previousIndex
public int previousIndex()
- Specified by:
previousIndexin interfaceCursor<K>- Specified by:
previousIndexin interfaceListIterator<K>
-
remove
public void remove()
-
load
public void load() throws InterruptedException- Specified by:
loadin interfaceCursor<K>- Throws:
InterruptedException
-
-