public abstract class Disposable extends Object implements Serializable
Constructor and Description |
---|
Disposable() |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
This method allows to declare that the iterator is not used anymoure.
|
void |
init()
Freeze the iterator, cannot be reused.
|
boolean |
isReusable()
Retrieve wether the iterator is free for reuse.
|
void |
remove()
Removes from the underlying collection the last element returned by the
iterator (optional operation).
|
public void init()
public void dispose()
public void remove()
UnsupportedOperationException
- if the remove
operation is not supported by this Iterator.IllegalStateException
- if the next method has not
yet been called, or the remove method has already
been called after the last call to the next
method.public final boolean isReusable()
Copyright © 2015. All rights reserved.