Interface Listiterator<K,D>

Type Parameters:
K - The type of the keys.
D - The type of the data.
All Superinterfaces:
Iterator<K,D>

public interface Listiterator<K,D>
extends Iterator<K,D>

An Listiterator allows all operations of an Iterator, and additionally has operations to insert and delete entries at the current position.

Author:
Rossmanith
See Also:
Iterator, List.iterator(), Map.iterator()

Method Summary
 void append(K k, D d)
          Inserts a new entry (k,d) behind the current entry.
 void delete()
          Deletes the current entry (and directly steps to the next entry)
 void prepend(K k, D d)
          Inserts a new entry (k,d) before the current entry.
 
Methods inherited from interface Iterator
data, key, more, step
 

Method Detail

delete

void delete()
Deletes the current entry (and directly steps to the next entry)


append

void append(K k,
            D d)
Inserts a new entry (k,d) behind the current entry.

Parameters:
k -
d -

prepend

void prepend(K k,
             D d)
Inserts a new entry (k,d) before the current entry.

Parameters:
k -
d -