public class Utils extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
Utils.Action |
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addLibraryPath(String pathToAdd) |
static <T> java.util.stream.Stream<T> |
fasterParallelStream(Collection<T> items) |
static <T> List<T> |
filter(List<T> list,
Filter<T> filter) |
static String |
getGitVersion() |
static String |
getIP() |
static String |
getStackTrace(StackTraceElement[] stackTrace) |
static String |
getStackTrace(Throwable e) |
static <T> ArrayList<T> |
list() |
static <S extends Comparable,T> |
list(HashMap<S,T> map) |
static <T> ArrayList<T> |
list(List<T> origList,
T obj) |
static <T> ArrayList<T> |
list(T... objs) |
static <T,S> HashMap<T,S> |
map() |
static <T,S> HashMap<T,S> |
map(ArrayList<Pair<T,S>> values) |
static int |
minFraq(int value,
int divisor) |
static int |
minLog(int val) |
static void |
noException(Utils.Action action) |
static <S,T> Pair<S,T> |
pair(S obj1,
T obj2) |
static int |
readInt(byte[] data,
int position,
int numOfBytes) |
static <T extends Comparable,S> |
reverseList(HashMap<S,T> map) |
static boolean |
terminateWasRequestedForCurrentThread() |
static void |
threadSleep(long ms) |
static void |
writeInt(byte[] data,
int position,
int value,
int numOfBytes) |
public static <T> ArrayList<T> list()
public static int minFraq(int value,
int divisor)
public static int minLog(int val)
public static int readInt(byte[] data,
int position,
int numOfBytes)
public static void writeInt(byte[] data,
int position,
int value,
int numOfBytes)
public static String getIP()
public static String getGitVersion()
public static <T extends Comparable,S> ArrayList<Pair<T,S>> reverseList(HashMap<S,T> map)
public static <S extends Comparable,T> ArrayList<Pair<S,T>> list(HashMap<S,T> map)
public static <T> ArrayList<T> list(T... objs)
public static <S,T> Pair<S,T> pair(S obj1, T obj2)
public static <T,S> HashMap<T,S> map()
public static void threadSleep(long ms)
public static boolean terminateWasRequestedForCurrentThread()
public static void addLibraryPath(String pathToAdd)
public static String getStackTrace(StackTraceElement[] stackTrace)
public static <T> java.util.stream.Stream<T> fasterParallelStream(Collection<T> items)
public static void noException(Utils.Action action)
Copyright © 2015. All rights reserved.