org.marketcetera.util.misc
Class IterableUtils

java.lang.Object
  extended by 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

Method Summary
static int size(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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

size

public static int size(Iterable<?> src)
Returns the size of the given iterable.

Parameters:
src - The iterable.
Returns:
The size.

toArray

public static Object[] toArray(Iterable<?> src)
Converts the given iterable to an array and returns the result.

Parameters:
src - The iterable.
Returns:
The array.


Copyright © 2012. All Rights Reserved.