Package com.atlassian.jira.util.collect
Class CountingEnclosedIterable<T>
java.lang.Object
com.atlassian.jira.util.collect.CountingEnclosedIterable<T>
- All Implemented Interfaces:
EnclosedIterable<T>,Sized
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.jira.util.collect.EnclosedIterable
EnclosedIterable.Functions, EnclosedIterable.ListResolver<T> -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
CountingEnclosedIterable
-
-
Method Details
-
foreach
Description copied from interface:EnclosedIterableApply the sink to all elements in the Collection.- Specified by:
foreachin interfaceEnclosedIterable<T>
-
size
public int size()- Specified by:
sizein interfaceEnclosedIterable<T>- Specified by:
sizein interfaceSized- Returns:
- the likely size of the objects passed into the sink in
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.
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceEnclosedIterable<T>- Specified by:
isEmptyin interfaceSized- Returns:
- true if the there is no data behind it.
-
getCountConsumed
public int getCountConsumed()
-