Class ArrayUtils


  • public final class ArrayUtils
    extends java.lang.Object
    Utilities for arrays.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <X> int indexOf​(X l, X[] array)
      Find the index of l in array.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • indexOf

        public static <X> int indexOf​(X l,
                                      X[] array)
        Find the index of l in array.
        Type Parameters:
        X - The type of object.
        Parameters:
        l - The element to find.
        array - The array to search in.
        Returns:
        The index of l in array, or <0.