public class Arrays extends Object
| Constructor and Description |
|---|
Arrays() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T[] |
add(T obj,
T... array) |
static boolean |
areEqual(byte[] a,
byte[] b) |
static boolean |
areEqual(char[] a,
char[] b) |
static <T> List<T> |
asList(T... elements) |
static byte[] |
cat(byte[] a,
byte[] b) |
static boolean |
compare(byte[] arr,
byte[] arr2) |
static byte[] |
copy(byte[] array,
int len) |
static byte[] |
copy(byte[] array,
int offset,
int len) |
static ByteBuffer |
copy(ByteBuffer buf) |
static void |
sort(int[] a)
Sorts the specified array of ints into ascending numerical order.
|
public static void sort(int[] a)
a - the array to be sortedpublic static boolean areEqual(byte[] a,
byte[] b)
public static <T> List<T> asList(T... elements)
public static <T> T[] add(T obj,
T... array)
public static boolean areEqual(char[] a,
char[] b)
public static byte[] copy(byte[] array,
int len)
public static byte[] copy(byte[] array,
int offset,
int len)
public static byte[] cat(byte[] a,
byte[] b)
public static boolean compare(byte[] arr,
byte[] arr2)
public static ByteBuffer copy(ByteBuffer buf)
Copyright © 2025. All rights reserved.