public abstract class Boxing extends Object
| Constructor and Description |
|---|
Boxing() |
| Modifier and Type | Method and Description |
|---|---|
static Boolean[] |
box(boolean[] array)
Converts an array of booleans to an array of Booleans.
|
static Byte[] |
box(byte[] array)
Converts an array of bytes to an array of Bytes.
|
static Character[] |
box(char[] array)
Converts an array of chars to an array of Characters.
|
static Double[] |
box(double[] array)
Converts an array of double to an array of Doubles.
|
static Float[] |
box(float[] array)
Converts an array of floats to an array of Floats.
|
static Integer[] |
box(int[] array)
Converts an array of ints to an array of Integers.
|
static Long[] |
box(long[] array)
Converts an array of longs to an array of Longs.
|
static Short[] |
box(short[] array)
Converts an array of shorts to an array of Shorts.
|
static boolean[] |
unbox(Boolean[] array)
Converts an array of Booleans to an array of booleans.
|
static byte[] |
unbox(Byte[] array)
Converts an array of Bytes to an array of bytes.
|
static char[] |
unbox(Character[] array)
Converts an array of Characters to an array of chars.
|
static double[] |
unbox(Double[] array)
Converts an array of Doubles to an array of doubles.
|
static float[] |
unbox(Float[] array)
Converts an array of Floats to an array of floats.
|
static int[] |
unbox(Integer[] array)
Converts an array of Integers to an array of integers.
|
static long[] |
unbox(Long[] array)
Converts an array of Longs to an array of longs.
|
static short[] |
unbox(Short[] array)
Converts an array of Shorts to an array of shorts.
|
public static Boolean[] box(boolean[] array)
array - the primitive arraypublic static Byte[] box(byte[] array)
array - the primitive arraypublic static Character[] box(char[] array)
array - the primitive arraypublic static Short[] box(short[] array)
array - the primitive arraypublic static Integer[] box(int[] array)
array - the primitive arraypublic static Long[] box(long[] array)
array - the primitive arraypublic static Float[] box(float[] array)
array - the primitive arraypublic static Double[] box(double[] array)
array - the primitive arraypublic static boolean[] unbox(Boolean[] array)
array - the array of boxed elementspublic static byte[] unbox(Byte[] array)
array - the array of boxed elementspublic static char[] unbox(Character[] array)
array - the array of boxed elementspublic static short[] unbox(Short[] array)
array - the array of boxed elementspublic static int[] unbox(Integer[] array)
array - the array of boxed elementspublic static long[] unbox(Long[] array)
array - the array of boxed elementspublic static float[] unbox(Float[] array)
array - the array of boxed elementspublic static double[] unbox(Double[] array)
array - the array of boxed elementsCopyright © 2013. All rights reserved.