public class CountingEnclosedIterable<T> extends Object implements EnclosedIterable<T>
EnclosedIterable.Functions, EnclosedIterable.ListResolver<T>
Constructor and Description |
---|
CountingEnclosedIterable(EnclosedIterable<T> delegate) |
Modifier and Type | Method and Description |
---|---|
void |
foreach(Consumer<T> sink)
Apply the sink to all elements in the Collection.
|
int |
getCountConsumed() |
boolean |
isEmpty() |
int |
size() |
public CountingEnclosedIterable(EnclosedIterable<T> delegate)
public void foreach(Consumer<T> sink)
EnclosedIterable
foreach
in interface EnclosedIterable<T>
public int size()
size
in interface EnclosedIterable<T>
size
in interface Sized
EnclosedIterable.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.public boolean isEmpty()
isEmpty
in interface EnclosedIterable<T>
isEmpty
in interface Sized
public int getCountConsumed()
Copyright © 2002-2022 Atlassian. All Rights Reserved.