|
CachingIterator::countReturn the number of elements in the cache Description
public int CachingIterator::count()
Returns the number of elements in the cache. This is the number of elements iterated over so far, not the number of elements of the inner iterator. Elements are stored in the cache by key, so an element replaces any earlier element with the same key.
The ParametersThis function has no parameters. Return ValuesReturns the number of elements in the cache. Errors/Exceptions
Throws a BadMethodCallException if the
ExamplesExample #1 CachingIterator::count example The above example will output: a: 1 b: 2 c: 3 See Also
|