Class ArrayUtil

java.lang.Object
discord4j.core.util.ArrayUtil

public class ArrayUtil extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static long[]
    add(long[] array, long l)
     
    static <T> T[]
    add(T[] array, T t)
     
    static long[]
    addAll(long[] array0, long[] array1)
     
    static boolean
    contains(long[] array, long l)
     
    static long[]
    remove(long[] array, long l)
     
    static <T> T[]
    remove(T[] array, T t)
     
    static <T> T[]
    replace(T[] array, T old, T replacement)
     
    static Long[]
    toObject(long[] array)
     

    Methods inherited from class java.lang.Object

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

    • ArrayUtil

      public ArrayUtil()
  • Method Details

    • remove

      public static <T> T[] remove(T[] array, T t)
    • remove

      public static long[] remove(long[] array, long l)
    • add

      public static <T> T[] add(T[] array, T t)
    • add

      public static long[] add(long[] array, long l)
    • addAll

      public static long[] addAll(long[] array0, long[] array1)
    • toObject

      public static Long[] toObject(long[] array)
    • replace

      public static <T> T[] replace(T[] array, T old, T replacement)
    • contains

      public static boolean contains(long[] array, long l)