public class HHelpers extends Object
| Constructor and Description |
|---|
HHelpers() |
| Modifier and Type | Method and Description |
|---|---|
static <T,V> V |
applyOrDefault(T a,
Function<T,V> s) |
static <T> T |
arrayGet(T[] a,
IntToIntFunction arrayLenFunction) |
static double[] |
newArray(int size,
double defaultValue) |
static int[] |
newArray(int size,
int defaultValue) |
static double[][] |
newArray(int size1,
int size2,
double defaultValue) |
static int[][] |
newArray(int size1,
int size2,
int defaultValue) |
static double[][] |
newArray(int size1,
int size2,
Int2ToDoubleFunction supplier) |
static int[][] |
newArray(int size1,
int size2,
Int2ToIntFunction supplier) |
static double[][][] |
newArray(int size1,
int size2,
int size3,
double defaultValue) |
static int[][][] |
newArray(int size1,
int size2,
int size3,
int defaultValue) |
static double[][][] |
newArray(int size1,
int size2,
int size3,
Int3ToDoubleFunction supplier) |
static int[][][] |
newArray(int size1,
int size2,
int size3,
Int3ToIntFunction supplier) |
static double[][][][] |
newArray(int size1,
int size2,
int size3,
int size4,
double defaultValue) |
static int[][][][] |
newArray(int size1,
int size2,
int size3,
int size4,
int defaultValue) |
static double[][][][] |
newArray(int size1,
int size2,
int size3,
int size4,
Int4ToDoubleFunction supplier) |
static int[][][][] |
newArray(int size1,
int size2,
int size3,
int size4,
Int4ToIntFunction supplier) |
static double[][][][][] |
newArray(int size1,
int size2,
int size3,
int size4,
int size5,
double defaultValue) |
static int[][][][][] |
newArray(int size1,
int size2,
int size3,
int size4,
int size5,
int defaultValue) |
static double[][][][][] |
newArray(int size1,
int size2,
int size3,
int size4,
int size5,
Int5ToDoubleFunction supplier) |
static int[][][][][] |
newArray(int size1,
int size2,
int size3,
int size4,
int size5,
Int5ToIntFunction supplier) |
static double[] |
newArray(int size,
IntToDoubleFunction supplier) |
static int[] |
newArray(int size,
IntToIntFunction supplier) |
static <T> T |
nonNull(T a,
Supplier<T> s) |
static String[] |
resolveClassWithParentNames(Class cls) |
static Class[] |
resolveClassWithParents(Class cls) |
static String[] |
resolveInstanceClassWithParentNames(Object cls) |
static <T> T |
rtCall(Object base,
Class baseType,
String method,
Supplier<Object[]> s,
Class<T> resultType) |
static <T> T |
rtInstanceCall(Object base,
String method,
Supplier<Object[]> s,
Class<T> resultType,
boolean skipNull) |
static <T> T |
rtStaticCall(Class baseType,
String method,
Supplier<Object[]> s,
Class<T> resultType) |
static <T> void |
swap(Ref<T> a,
Ref<T> b) |
static int |
switchRegrex(String other,
Pattern p,
int count) |
public static String[] resolveInstanceClassWithParentNames(Object cls)
public static <T> T nonNull(T a,
Supplier<T> s)
public static <T,V> V applyOrDefault(T a,
Function<T,V> s)
public static <T> T rtInstanceCall(Object base, String method, Supplier<Object[]> s, Class<T> resultType, boolean skipNull)
public static <T> T rtStaticCall(Class baseType, String method, Supplier<Object[]> s, Class<T> resultType)
public static <T> T rtCall(Object base, Class baseType, String method, Supplier<Object[]> s, Class<T> resultType)
public static <T> T arrayGet(T[] a,
IntToIntFunction arrayLenFunction)
public static int[] newArray(int size,
int defaultValue)
public static int[][] newArray(int size1,
int size2,
int defaultValue)
public static int[][][] newArray(int size1,
int size2,
int size3,
int defaultValue)
public static int[][][][] newArray(int size1,
int size2,
int size3,
int size4,
int defaultValue)
public static int[][][][][] newArray(int size1,
int size2,
int size3,
int size4,
int size5,
int defaultValue)
public static int[] newArray(int size,
IntToIntFunction supplier)
public static int[][] newArray(int size1,
int size2,
Int2ToIntFunction supplier)
public static int[][][] newArray(int size1,
int size2,
int size3,
Int3ToIntFunction supplier)
public static int[][][][] newArray(int size1,
int size2,
int size3,
int size4,
Int4ToIntFunction supplier)
public static int[][][][][] newArray(int size1,
int size2,
int size3,
int size4,
int size5,
Int5ToIntFunction supplier)
public static double[] newArray(int size,
double defaultValue)
public static double[][] newArray(int size1,
int size2,
double defaultValue)
public static double[][][] newArray(int size1,
int size2,
int size3,
double defaultValue)
public static double[][][][] newArray(int size1,
int size2,
int size3,
int size4,
double defaultValue)
public static double[][][][][] newArray(int size1,
int size2,
int size3,
int size4,
int size5,
double defaultValue)
public static double[] newArray(int size,
IntToDoubleFunction supplier)
public static double[][] newArray(int size1,
int size2,
Int2ToDoubleFunction supplier)
public static double[][][] newArray(int size1,
int size2,
int size3,
Int3ToDoubleFunction supplier)
public static double[][][][] newArray(int size1,
int size2,
int size3,
int size4,
Int4ToDoubleFunction supplier)
public static double[][][][][] newArray(int size1,
int size2,
int size3,
int size4,
int size5,
Int5ToDoubleFunction supplier)
Copyright © 2021 vpc open source initiative. All rights reserved.