@Utility public class ArrayConversion extends Object
| Constructor and Description |
|---|
ArrayConversion() |
| Modifier and Type | Method and Description |
|---|---|
static Boolean[] |
box(boolean[] array)
Boxes the values of the given array or propagates null.
|
static Byte[] |
box(byte[] array)
Boxes the values of the given array or propagates null.
|
static Character[] |
box(char[] array)
Boxes the values of the given array or propagates null.
|
static Double[] |
box(double[] array)
Boxes the values of the given array or propagates null.
|
static Float[] |
box(float[] array)
Boxes the values of the given array or propagates null.
|
static Integer[] |
box(int[] array)
Boxes the values of the given array or propagates null.
|
static Long[] |
box(long[] array)
Boxes the values of the given array or propagates null.
|
static Short[] |
box(short[] array)
Boxes the values of the given array or propagates null.
|
static boolean[] |
unbox(Boolean[] array)
Unboxes the values of the given array or propagates null.
|
static byte[] |
unbox(Byte[] array)
Unboxes the values of the given array or propagates null.
|
static char[] |
unbox(Character[] array)
Unboxes the values of the given array or propagates null.
|
static double[] |
unbox(Double[] array)
Unboxes the values of the given array or propagates null.
|
static float[] |
unbox(Float[] array)
Unboxes the values of the given array or propagates null.
|
static int[] |
unbox(Integer[] array)
Unboxes the values of the given array or propagates null.
|
static long[] |
unbox(Long[] array)
Unboxes the values of the given array or propagates null.
|
static short[] |
unbox(Short[] array)
Unboxes the values of the given array or propagates null.
|
@Pure public static Boolean[] box(boolean[] array)
@Pure public static Character[] box(char[] array)
@Pure public static Byte[] box(byte[] array)
@Pure public static Short[] box(short[] array)
@Pure public static Integer[] box(int[] array)
@Pure public static Long[] box(long[] array)
@Pure public static Float[] box(float[] array)
@Pure public static Double[] box(double[] array)
@Pure public static boolean[] unbox(Boolean[] array)
NullPointerException - if the array contains null.@Pure public static char[] unbox(Character[] array)
NullPointerException - if the array contains null.@Pure public static byte[] unbox(Byte[] array)
NullPointerException - if the array contains null.@Pure public static short[] unbox(Short[] array)
NullPointerException - if the array contains null.@Pure public static int[] unbox(Integer[] array)
NullPointerException - if the array contains null.@Pure public static long[] unbox(Long[] array)
NullPointerException - if the array contains null.@Pure public static float[] unbox(Float[] array)
NullPointerException - if the array contains null.@Pure public static double[] unbox(Double[] array)
NullPointerException - if the array contains null.Copyright © 2017. All rights reserved.