| Modifier and Type | Method and Description |
|---|---|
static <K,V> Map<K,V> |
autoExpandingMap(Class<V> clazz) |
static <K,V> Map<K,V> |
autoExpandingMap(org.rapidoid.lambda.Mapper<K,V> valueFactory) |
static void |
benchmark(String name,
int count,
Runnable runnable) |
static void |
benchmarkComplete(String name,
int count,
long startTime) |
static void |
benchmarkMT(int threadsN,
String name,
int count,
CountDownLatch outsideLatch,
Runnable runnable) |
static void |
benchmarkMT(int threadsN,
String name,
int count,
Runnable runnable) |
static String |
bytesAsText(byte[] bytes) |
static int |
bytesToInt(String s) |
static long |
bytesToLong(String s) |
static short |
bytesToShort(String s) |
static String |
camelPhrase(String s) |
static String |
camelSplit(String s) |
static void |
connect(String address,
int port,
F2<Void,BufferedReader,DataOutputStream> protocol) |
static boolean |
contains(Object arrOrColl,
Object value) |
static Object |
decode(ByteBuffer buf) |
static long |
decodeLong(ByteBuffer buf) |
static Object |
deserialize(byte[] buf) |
static Object |
deserialize(ByteBuffer buf) |
static void |
encode(long value,
ByteBuffer buf) |
static void |
encode(Object value,
ByteBuffer buf) |
static void |
endMeasure() |
static void |
endMeasure(String info) |
static Object |
exclude(Object arrOrColl,
Object item) |
static String |
fillIn(String template,
String placeholder,
String value) |
static <T> void |
filter(Collection<T> coll,
org.rapidoid.lambda.Predicate<T> predicate) |
static Object[] |
flat(Object... arr) |
static <T> int |
flatInsertInto(List<T> dest,
int index,
Object item) |
static String |
getCpuMemStats() |
static ImportExport |
importExport(Map<String,Object> props) |
static Object |
include(Object arrOrColl,
Object item) |
static int |
intFrom(byte a,
byte b,
byte c,
byte d) |
static void |
joinThread(Thread thread) |
static void |
listen(int port,
F2<Void,BufferedReader,DataOutputStream> protocol) |
static void |
listen(String hostname,
int port,
F2<Void,BufferedReader,DataOutputStream> protocol) |
static String |
md5(byte[] bytes) |
static String |
md5(String data) |
static void |
microHttpServer(String hostname,
int port,
F2<String,String,List<String>> handler) |
static String |
replace(String s,
String regex,
org.rapidoid.lambda.Mapper<String[],String> replacer) |
static Throwable |
rootCause(Throwable e) |
static void |
schedule(Runnable task,
long delay) |
static byte[] |
serialize(Object value) |
static void |
serialize(Object value,
ByteBuffer buf) |
static short |
shortFrom(byte a,
byte b) |
static void |
sleep(long millis) |
static String |
stackTraceOf(Throwable e) |
static void |
startMeasure() |
static String |
urlDecode(String value) |
static void |
waitFor(Object obj) |
static boolean |
waitInterruption(long millis) |
static <T,V extends T> |
withoutNulls(V... values) |
public static byte[] serialize(Object value)
public static Object deserialize(byte[] buf)
public static void serialize(Object value, ByteBuffer buf)
public static Object deserialize(ByteBuffer buf)
public static void encode(long value,
ByteBuffer buf)
public static void encode(Object value, ByteBuffer buf)
public static long decodeLong(ByteBuffer buf)
public static Object decode(ByteBuffer buf)
public static void connect(String address, int port, F2<Void,BufferedReader,DataOutputStream> protocol)
public static void listen(int port,
F2<Void,BufferedReader,DataOutputStream> protocol)
public static void listen(String hostname, int port, F2<Void,BufferedReader,DataOutputStream> protocol)
public static void microHttpServer(String hostname, int port, F2<String,String,List<String>> handler)
public static <T> void filter(Collection<T> coll, org.rapidoid.lambda.Predicate<T> predicate)
public static short bytesToShort(String s)
public static int bytesToInt(String s)
public static long bytesToLong(String s)
public static int intFrom(byte a,
byte b,
byte c,
byte d)
public static short shortFrom(byte a,
byte b)
public static <K,V> Map<K,V> autoExpandingMap(org.rapidoid.lambda.Mapper<K,V> valueFactory)
public static String replace(String s, String regex, org.rapidoid.lambda.Mapper<String[],String> replacer)
public static boolean waitInterruption(long millis)
public static void waitFor(Object obj)
public static void joinThread(Thread thread)
public static void benchmarkComplete(String name, int count, long startTime)
public static void benchmarkMT(int threadsN,
String name,
int count,
CountDownLatch outsideLatch,
Runnable runnable)
public static String getCpuMemStats()
public static String bytesAsText(byte[] bytes)
public static String md5(byte[] bytes)
public static void schedule(Runnable task, long delay)
public static void startMeasure()
public static void endMeasure()
public static void endMeasure(String info)
public static void sleep(long millis)
public static ImportExport importExport(Map<String,Object> props)
public static <T,V extends T> List<T> withoutNulls(V... values)
Copyright © 2014–2015 Nikolche Mihajlovski. All rights reserved.