public class ArrayUtil extends Object
| コンストラクタと説明 |
|---|
ArrayUtil() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
static <T> T[] |
append(T[] elements,
T... elements2) |
static <T> T[] |
append(T[] elements,
T element) |
static <T> T[] |
array(Class<T> elementClass,
Object... elements) |
static <T> T[] |
array(T... elements) |
static Character[] |
box(char[] elements) |
static <T> T[] |
clone(T[] elements) |
static <T,U> U[] |
collect(T[] elements,
Class<U> clazz,
Function<T,U> mapper) |
static <T,U> U[] |
collect(T[] elements,
Function<T,U> mapper) |
static <T> boolean |
elementsEqual(T[] src,
T[] dst) |
static String[] |
emptyStrings() |
static <T> void |
fill(T[] array,
Supplier<T> sup) |
static <T> T[] |
filter(T[] elements,
Predicate<T> pred) |
static <T> T |
first(T[] elements) |
static <T> T |
getWithinBound(T[] elements,
int index) |
static String |
join(Object[] elements,
String separator) |
static String |
join(String[] elements,
String separator) |
static <T> T |
last(T[] elements) |
static <T> Stream<T> |
stream(T[] array) |
static <T> T[] |
subArray(T[] elements,
int beginIndex) |
static <T> T[] |
subArray(T[] elements,
int beginIndex,
int endIndex) |
static <T> T[] |
toArray(Iterable<T> elements,
T[] a) |
static byte[][] |
toBytesArray(String[] value,
String encoding) |
static <T> Object |
toPrimitiveArray(Collection<T> collection,
Class<T> clazz) |
static String |
toString(Object array) |
static String[] |
toStringArray(byte[][] value,
String encoding) |
@SafeVarargs public static <T> T[] array(T... elements)
public static Character[] box(char[] elements)
public static <T> T first(T[] elements)
public static <T> T last(T[] elements)
public static <T> T getWithinBound(T[] elements,
int index)
public static <T> boolean elementsEqual(T[] src,
T[] dst)
public static <T> T[] toArray(Iterable<T> elements, T[] a)
public static String[] emptyStrings()
public static <T> T[] clone(T[] elements)
public static <T> T[] append(T[] elements,
T element)
@SafeVarargs public static <T> T[] append(T[] elements, T... elements2)
public static <T> T[] subArray(T[] elements,
int beginIndex,
int endIndex)
public static <T> T[] subArray(T[] elements,
int beginIndex)
public static <T,U> U[] collect(T[] elements,
Function<T,U> mapper)
public static <T> T[] filter(T[] elements,
Predicate<T> pred)
public static byte[][] toBytesArray(String[] value, String encoding) throws UnsupportedEncodingException
public static String[] toStringArray(byte[][] value, String encoding) throws UnsupportedEncodingException
public static <T> Object toPrimitiveArray(Collection<T> collection, Class<T> clazz) throws IllegalArgumentException
public static <T> Stream<T> stream(T[] array)
public static <T> void fill(T[] array,
Supplier<T> sup)
Copyright © 2018. All rights reserved.