com.jdroid.java.collections
Class Iterators

java.lang.Object
  extended by com.jdroid.java.collections.Iterators

public class Iterators
extends Object


Constructor Summary
Iterators()
           
 
Method Summary
static int size(Iterator<?> iterator)
          Returns the number of elements remaining in iterator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Iterators

public Iterators()
Method Detail

size

public static int size(Iterator<?> iterator)
Returns the number of elements remaining in iterator. The iterator will be left exhausted: its hasNext() method will return false.

Parameters:
iterator - The Iterator
Returns:
The Iterator size


Copyright © 2014. All rights reserved.