public class Helper
extends java.lang.Object
Constructor and Description |
---|
Helper() |
Modifier and Type | Method and Description |
---|---|
static <_T,_S> _T |
as(_S o,
java.lang.Class<?> c)
Performs a try cast of o to class c.
|
static <_T> int |
getLength(_T[][] array,
int dimension)
Returns the length of the specified dimension of a two-dimensional array.
|
static int |
getLength(double[][] array,
int dimension)
Returns the specified dimension of the specified two-dimensional array.
|
static int |
getLength(float[][] array,
int dimension)
Returns the specified dimension of the specified two-dimensional array.
|
static int |
getLength(int[][] array,
int dimension)
Returns the specified dimension of the specified two-dimensional array.
|
static int |
getLength(short[][] array,
int dimension)
Returns the specified dimension of the specified two-dimensional array.
|
static <_T,_S1,_S2> |
nc(_S1 s1,
_S2 s2)
Performs a null-coalescing of the specified arguments.
|
public static <_T,_S> _T as(_S o, java.lang.Class<?> c)
public static <_T,_S1,_S2> _T nc(_S1 s1, _S2 s2)
public static <_T> int getLength(_T[][] array, int dimension)
public static int getLength(int[][] array, int dimension)
public static int getLength(double[][] array, int dimension)
public static int getLength(float[][] array, int dimension)
public static int getLength(short[][] array, int dimension)