public abstract class Disposable extends Object
| 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 |
isNotReusable() |
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 isNotReusable()
Copyright © 2017. All rights reserved.