public class ArraysUtils
extends java.lang.Object
| Modifier and Type | Method and Description | 
|---|---|
| static boolean | contains(boolean[] arr,
        boolean obj) | 
| static boolean | contains(byte[] arr,
        byte obj) | 
| static boolean | contains(char[] arr,
        char obj) | 
| static boolean | contains(double[] arr,
        double obj) | 
| static boolean | contains(float[] arr,
        float obj) | 
| static boolean | contains(int[] arr,
        int obj) | 
| static boolean | contains(long[] arr,
        long obj) | 
| static boolean | contains(short[] arr,
        short obj) | 
| static <T> boolean | contains(T[] arr,
        T obj)Tells whether an element is present in an array. | 
| static int | find(boolean[] arr,
    boolean b) | 
| static int | find(byte[] arr,
    byte b) | 
| static int | find(char[] arr,
    char c) | 
| static int | find(double[] arr,
    double d) | 
| static int | find(float[] arr,
    float f) | 
| static int | find(int[] arr,
    int i) | 
| static int | find(long[] arr,
    long l) | 
| static int | find(short[] arr,
    short s) | 
| static <T> int | find(T[] arr,
    T obj)Searches for an element in an array, returning its index if present. | 
| static char[] | replicate(int n,
         char c)Generates a string composed of just n consecutive occurrences of char c. | 
public static char[] replicate(int n,
               char c)
n - c - public static <T> int find(T[] arr,
           T obj)
arr - the array to search inobj - the object to search for in the given arraypublic static int find(byte[] arr,
       byte b)
find(Object[], Object)public static int find(short[] arr,
       short s)
find(Object[], Object)public static int find(boolean[] arr,
       boolean b)
find(Object[], Object)public static int find(char[] arr,
       char c)
find(Object[], Object)public static int find(int[] arr,
       int i)
find(Object[], Object)public static int find(long[] arr,
       long l)
find(Object[], Object)public static int find(float[] arr,
       float f)
find(Object[], Object)public static int find(double[] arr,
       double d)
find(Object[], Object)public static <T> boolean contains(T[] arr,
                   T obj)
arr - the array to search inobj - the object to search for in the given arraypublic static boolean contains(byte[] arr,
               byte obj)
contains(Object[], Object)public static boolean contains(short[] arr,
               short obj)
contains(Object[], Object)public static boolean contains(boolean[] arr,
               boolean obj)
contains(Object[], Object)public static boolean contains(char[] arr,
               char obj)
contains(Object[], Object)public static boolean contains(int[] arr,
               int obj)
contains(Object[], Object)public static boolean contains(long[] arr,
               long obj)
contains(Object[], Object)public static boolean contains(float[] arr,
               float obj)
contains(Object[], Object)public static boolean contains(double[] arr,
               double obj)
contains(Object[], Object)