public interface SequenceWithClose<T> extends Sequence<T>, AutoCloseable
try { while ((i=Sequence.next()) != null) { : : } } finally { Sequence.close(); }
Modifier and Type | Method and Description |
---|---|
void |
close()
Invalidates this sequence, releases all resources etc.
|
void close()
close
in interface AutoCloseable
Copyright © 2016 Egothor. All Rights Reserved.