Package com.jackmeng.stl
Class stl_Commons
java.lang.Object
com.jackmeng.stl.stl_Commons
public final class stl_Commons
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
stl_Commons.SysArch
-
Constructor Summary
Constructors Modifier Constructor Description private
stl_Commons()
-
Method Summary
Modifier and Type Method Description static int
array_dim(java.lang.Class<?> type)
static <T> boolean
array_has(T[] array, T key)
static void
async(stl_Callback<java.lang.Void,? extends Null_t> task)
static void
async(java.lang.Runnable task)
static <T> stl_Listener<T>
consumer2listener(java.util.function.Consumer<T> consume)
static <T> stl_ArrItr<T>
for_each(T[] e)
static <T, E> java.lang.Object
if_else(boolean expr, T if_, E else_)
static boolean
is_array(java.lang.Class<?> type)
static <T, E> java.lang.Object
nilable(T _check, E else_)
static stl_Commons.SysArch
sys_bitness()
static java.lang.String
tmpdir()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
stl_Commons
private stl_Commons()
-
-
Method Details
-
async
public static void async(java.lang.Runnable task) -
async
-
array_has
public static <T> boolean array_has(T[] array, T key) -
array_dim
public static int array_dim(java.lang.Class<?> type) -
if_else
public static <T, E> java.lang.Object if_else(boolean expr, T if_, E else_) -
nilable
public static <T, E> java.lang.Object nilable(T _check, E else_) -
is_array
public static boolean is_array(java.lang.Class<?> type) -
for_each
-
sys_bitness
-
consumer2listener
-
tmpdir
public static java.lang.String tmpdir()
-