Package org.marketcetera.util.misc
Class IterableUtils
- java.lang.Object
-
- org.marketcetera.util.misc.IterableUtils
-
public final class IterableUtils extends Object
Utilities for iterables.- Since:
- 0.5.0
- Version:
- $Id: IterableUtils.java 16154 2012-07-14 16:34:05Z colin $
- Author:
- tlerios@marketcetera.com
-
-
Constructor Summary
Constructors Modifier Constructor Description privateIterableUtils()Constructor.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intsize(Iterable<?> src)Returns the size of the given iterable.static Object[]toArray(Iterable<?> src)Converts the given iterable to an array and returns the result.
-
-
-
Method Detail
-
size
public static int size(Iterable<?> src)
Returns the size of the given iterable.- Parameters:
src- The iterable.- Returns:
- The size.
-
-