public class ConfigurationFileListIterator extends Object implements ListIterator<AbstractEntry>
| Constructor and Description |
|---|
ConfigurationFileListIterator(AbstractConfigurationFile parent,
ListIterator<AbstractEntry> delegate)
Constructor for ConfigurationFileListIterator
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(AbstractEntry entry)
Inserts the specified element into the List
|
boolean |
hasNext()
Determines if there are more elements.
|
boolean |
hasPrevious()
Determines if there is a previous element.
|
AbstractEntry |
next()
Gets the next element in the List.
|
int |
nextIndex()
Gets the index of the element that would be returned by a subsequent
call to next.
|
AbstractEntry |
previous()
Gets the previous element in the List.
|
int |
previousIndex()
Gets the index of the element that would be returned by a subsequent
call to previous.
|
void |
remove()
Removes from the List the last element that was returned by next or
previous.
|
void |
set(AbstractEntry entry)
Replaces the last element returned by next or previous with the
specified element.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic ConfigurationFileListIterator(AbstractConfigurationFile parent, ListIterator<AbstractEntry> delegate)
parent - parent used to check for valid entry typesdelegate - ListIterator delegatepublic void add(AbstractEntry entry)
add in interface ListIterator<AbstractEntry>entry - element with which to replace the last element
returned by next or previouspublic boolean hasNext()
hasNext in interface Iterator<AbstractEntry>hasNext in interface ListIterator<AbstractEntry>public boolean hasPrevious()
hasPrevious in interface ListIterator<AbstractEntry>public AbstractEntry next()
next in interface Iterator<AbstractEntry>next in interface ListIterator<AbstractEntry>public int nextIndex()
nextIndex in interface ListIterator<AbstractEntry>public AbstractEntry previous()
previous in interface ListIterator<AbstractEntry>public int previousIndex()
previousIndex in interface ListIterator<AbstractEntry>public void remove()
remove in interface Iterator<AbstractEntry>remove in interface ListIterator<AbstractEntry>public void set(AbstractEntry entry)
set in interface ListIterator<AbstractEntry>entry - element with which to replace the last element
returned by next or previous? Copyright 2013 BMC Software, Inc.