Class ObjectIterables

java.lang.Object
it.unimi.dsi.fastutil.objects.ObjectIterables

public final class ObjectIterables
extends java.lang.Object
A class providing static methods and objects that do useful things with type-specific iterables.
See Also:
Iterable
  • Method Summary

    Modifier and Type Method Description
    static <K> long size​(java.lang.Iterable<K> iterable)
    Counts the number of elements returned by a type-specific iterable.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • size

      public static <K> long size​(java.lang.Iterable<K> iterable)
      Counts the number of elements returned by a type-specific iterable.
      Parameters:
      iterable - an iterable.
      Returns:
      the number of elements returned by iterable.