Class OArrays

java.lang.Object
com.orientechnologies.common.util.OArrays

public class OArrays extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    contains(int[] iArray, int iToFind)
    Returns true if an arrays contains a value, otherwise false
    static <T> boolean
    contains(T[] iArray, T iToFind)
    Returns true if an arrays contains a value, otherwise false
    static int[]
    copyOf(int[] iSource, int iNewSize)
     
    static <T> T[]
    copyOf(T[] iSource, int iNewSize)
     
    static <T, U> T[]
    copyOf(U[] iSource, int iNewSize, Class<? extends T[]> iNewType)
     
    static byte[]
    copyOfRange(byte[] iSource, int iBegin, int iEnd)
     
    static <S> S[]
    copyOfRange(S[] iSource, int iBegin, int iEnd)
     
    static <D, S> D[]
    copyOfRange(S[] iSource, int iBegin, int iEnd, Class<? extends D[]> iClass)
     
    static int
    hash(Object[] iArray)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • OArrays

      public OArrays()
  • Method Details

    • copyOf

      public static <T> T[] copyOf(T[] iSource, int iNewSize)
    • copyOf

      public static <T, U> T[] copyOf(U[] iSource, int iNewSize, Class<? extends T[]> iNewType)
    • copyOfRange

      public static <S> S[] copyOfRange(S[] iSource, int iBegin, int iEnd)
    • copyOfRange

      public static <D, S> D[] copyOfRange(S[] iSource, int iBegin, int iEnd, Class<? extends D[]> iClass)
    • copyOfRange

      public static byte[] copyOfRange(byte[] iSource, int iBegin, int iEnd)
    • copyOf

      public static int[] copyOf(int[] iSource, int iNewSize)
    • contains

      public static boolean contains(int[] iArray, int iToFind)
      Returns true if an arrays contains a value, otherwise false
    • contains

      public static <T> boolean contains(T[] iArray, T iToFind)
      Returns true if an arrays contains a value, otherwise false
    • hash

      public static int hash(Object[] iArray)