Class IteratorUtil
- java.lang.Object
-
- net.sourceforge.pmd.internal.util.IteratorUtil
-
public final class IteratorUtil extends Object
- Since:
- 6.11.0
- Author:
- Clément Fournier
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIteratorUtil.AbstractIterator<T>
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> Iterable<T>asReversed(List<T> lst)static intcount(Iterator<?> it)Counts the items in this iterator, exhausting it.static <T> Iterator<T>reverse(Iterator<T> it)static <T> Iterable<T>toIterable(Iterator<T> it)static <T> List<T>toList(Iterator<T> it)
-
-
-
Method Detail
-
count
public static int count(Iterator<?> it)
Counts the items in this iterator, exhausting it.
-
-