|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@PublicApi public interface EnclosedIterable<T>
A limited collection view that may be backed by the something that needs closing, for example a connection to a database.
You can access all elements using the foreach(Consumer)
method.
Nested Class Summary | |
---|---|
static class |
EnclosedIterable.Functions
|
static class |
EnclosedIterable.ListResolver<T>
Utility class for transforming a EnclosedIterable into a List . |
Method Summary | |
---|---|
void |
foreach(Consumer<T> sink)
Apply the sink to all elements in the Collection. |
boolean |
isEmpty()
|
int |
size()
|
Method Detail |
---|
void foreach(Consumer<T> sink)
int size()
size
in interface Sized
foreach(Consumer)
. Be careful depending on this size
being exact, as in many cases its best efforts value or may be unstable due to concurrent changes.boolean isEmpty()
isEmpty
in interface Sized
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |