Class 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 Detail

      • IterableUtils

        private IterableUtils()
        Constructor. It is private so that no instances can be created.
    • 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.