| Modifier and Type | Field and Description |
|---|---|
static ScheduledThreadPoolExecutor |
EXECUTOR |
static Set<String> |
SPECIAL_ERRORS |
static Mapper<Object,Object> |
TRANSFORM_TO_SIMPLE_CLASS_NAME |
static Mapper<Object,Object> |
TRANSFORM_TO_STRING |
AMP, ASTERISK, BYTE_0, COL, CR, CR_, CR_LF, CR_LF_CR_LF, DELETE, EMPTY_ARRAY, EMPTY_STRING_ARRAY, EQ, F, GET, GET_OR_POST, HEAD, HTTP_VERBS, LF, LF_, LF_LF, NOT_FOUND, OPTIONS, PATCH, POST, PUT, SEMI_COL, SEPARATOR_LINE, SPACE, SPACE_, T, TRACE| Modifier and Type | Method and Description |
|---|---|
static String |
annotations(Class<? extends Annotation>[] annotations) |
static void |
append(StringBuilder sb,
String separator,
String value) |
static void |
benchmark(String name,
int count,
Operation<Integer> operation) |
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 int |
bytesToInt(String s) |
static long |
bytesToLong(String s) |
static short |
bytesToShort(String s) |
static <K,V> Map<K,V> |
cast(Map<?,?> map) |
static String |
classes(List<Class<?>> classes) |
static String |
classNames(List<String> classes) |
static <T> T |
connect(String address,
int port,
F2<T,BufferedReader,DataOutputStream> protocol) |
static int |
countNonNull(Object... values) |
static Object[] |
deleteAt(Object[] arr,
int index) |
static Object |
deserialize(byte[] buf) |
static Object |
deserialize(ByteBuffer buf) |
static <T> T |
dynamic(Class<T> targetInterface,
Dynamic dynamic) |
static void |
endMeasure() |
static void |
endMeasure(long count,
String info) |
static void |
endMeasure(String info) |
static boolean |
exists(Callable<?> accessChain) |
static <T> T[] |
expand(T[] arr,
int factor) |
static <T> T[] |
expand(T[] arr,
T item) |
static String |
fillIn(String template,
Object... namesAndValues) |
static String |
fillIn(String template,
String placeholder,
String value) |
static void |
filterAndInvokeMainClasses(Object[] beans,
Set<Class<?>> invoked) |
static Class<?> |
getCallingClass(Class<?>... ignoreClasses) |
static Class<?> |
getCallingMainClass() |
static String |
getCallingPackage(Class<?>... ignoreClasses) |
static ErrCodeAndMsg |
getErrorCodeAndMsg(Throwable err) |
static List<?> |
getPage(Iterable<?> items,
int page,
int pageSize,
Integer size,
BoolWrap isLastPage) |
static boolean |
hasJPA() |
static boolean |
hasLogback() |
static boolean |
hasRapidoidGUI() |
static boolean |
hasRapidoidJPA() |
static boolean |
hasRapidoidWatch() |
static boolean |
hasValidation() |
static boolean |
insideTest() |
static int |
intFrom(byte a,
byte b,
byte c,
byte d) |
static void |
invokeMain(Class<?> clazz,
String[] args) |
static boolean |
isArray(Object value) |
static boolean |
isValidationError(Throwable error) |
static String |
javaVersion() |
static void |
joinThread(Thread thread) |
static void |
logProperties(Properties props) |
static void |
logSection(String msg) |
static RapidoidThread |
loop(Runnable loop) |
static <T> Map<String,T> |
lowercase(Map<String,T> map) |
static boolean |
matchingProfile(Class<?> clazz) |
static void |
multiThreaded(int threadsN,
Mapper<Integer,Void> executable) |
static void |
multiThreaded(int threadsN,
Runnable executable) |
static <T> List<T> |
page(Iterable<T> items,
int page,
int pageSize) |
static String |
path(String... parts) |
static int |
processId() |
static <T> Map<String,T> |
protectSensitiveInfo(Map<String,T> data,
T replacement) |
static String |
refinePath(String path) |
static void |
reset() |
static Throwable |
rootCause(Throwable e) |
static byte |
sbyte(int n) |
static <T extends Serializable> |
serializable(Object value) |
static byte[] |
serialize(Object value) |
static void |
serialize(Object value,
ByteBuffer buf) |
static short |
shortFrom(byte a,
byte b) |
static String |
stackTraceOf(Throwable e) |
static void |
startMeasure() |
static void |
terminate() |
static void |
terminate(int afterSeconds) |
static void |
terminateIfIdleFor(int idleSeconds) |
static String |
textToId(String s) |
static Thread |
thread(Runnable runnable) |
static byte[] |
toBytes(Object obj) |
static int |
ubyte(byte b) |
static String |
uri(String... parts) |
static String |
urlDecode(String value) |
static String |
urlDecodeOrKeepOriginal(String s) |
static String |
urlEncode(String value) |
static void |
wait(CountDownLatch latch) |
static void |
wait(CountDownLatch latch,
long timeout,
TimeUnit unit) |
static void |
waitFor(Object obj) |
static boolean |
waitInterruption(long millis) |
static boolean |
withWatchModule() |
public static final Mapper<Object,Object> TRANSFORM_TO_SIMPLE_CLASS_NAME
public static final ScheduledThreadPoolExecutor EXECUTOR
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 <T> T connect(String address, int port, F2<T,BufferedReader,DataOutputStream> protocol)
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 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 void startMeasure()
public static void endMeasure()
public static void endMeasure(String info)
public static void endMeasure(long count,
String info)
public static void multiThreaded(int threadsN,
Runnable executable)
public static void append(StringBuilder sb, String separator, String value)
public static <T extends Serializable> T serializable(Object value)
public static RapidoidThread loop(Runnable loop)
public static Class<?> getCallingMainClass()
public static byte[] toBytes(Object obj)
public static boolean isArray(Object value)
public static <T> T[] expand(T[] arr,
int factor)
public static <T> T[] expand(T[] arr,
T item)
public static void wait(CountDownLatch latch)
public static void wait(CountDownLatch latch, long timeout, TimeUnit unit)
public static boolean exists(Callable<?> accessChain)
public static int countNonNull(Object... values)
public static boolean withWatchModule()
public static void terminate(int afterSeconds)
public static void terminateIfIdleFor(int idleSeconds)
public static void terminate()
public static byte sbyte(int n)
public static int ubyte(byte b)
public static void logSection(String msg)
public static void logProperties(Properties props)
public static boolean hasValidation()
public static boolean hasJPA()
public static boolean hasRapidoidJPA()
public static boolean hasRapidoidGUI()
public static boolean hasRapidoidWatch()
public static boolean hasLogback()
public static boolean isValidationError(Throwable error)
public static ErrCodeAndMsg getErrorCodeAndMsg(Throwable err)
public static List<?> getPage(Iterable<?> items, int page, int pageSize, Integer size, BoolWrap isLastPage)
public static void filterAndInvokeMainClasses(Object[] beans, Set<Class<?>> invoked)
public static String annotations(Class<? extends Annotation>[] annotations)
public static <T> Map<String,T> protectSensitiveInfo(Map<String,T> data, T replacement)
public static int processId()
public static String javaVersion()
public static boolean matchingProfile(Class<?> clazz)
public static boolean insideTest()
public static void reset()
Copyright © 2014–2016 Nikolche Mihajlovski and contributors. All rights reserved.