public class U extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> T[] |
array(T... items) |
static void |
bounds(int value,
int min,
int max) |
static String |
capitalized(String s) |
static <T> int |
compare(T val1,
T val2) |
static <K,V> ConcurrentMap<K,V> |
concurrentMap() |
static <K,V> ConcurrentMap<K,V> |
concurrentMap(K key,
V value) |
static <K,V> ConcurrentMap<K,V> |
concurrentMap(K key1,
V value1,
K key2,
V value2) |
static <K,V> ConcurrentMap<K,V> |
concurrentMap(K key1,
V value1,
K key2,
V value2,
K key3,
V value3) |
static <K,V> ConcurrentMap<K,V> |
concurrentMap(K key1,
V value1,
K key2,
V value2,
K key3,
V value3,
K key4,
V value4) |
static <K,V> ConcurrentMap<K,V> |
concurrentMap(K key1,
V value1,
K key2,
V value2,
K key3,
V value3,
K key4,
V value4,
K key5,
V value5) |
static <K,V> ConcurrentMap<K,V> |
concurrentMap(Map<? extends K,? extends V> src,
boolean ignoreNullValues) |
static <K,V> ConcurrentMap<K,V> |
concurrentMap(Object... keysAndValues) |
static String |
copyNtimes(String s,
int n) |
static boolean |
eq(Object a,
Object b) |
static String |
format(String s,
Object... args) |
static IllegalArgumentException |
illegalArg(String message) |
static boolean |
isEmpty(Collection<?> coll) |
static boolean |
isEmpty(Iterable<?> iter) |
static boolean |
isEmpty(Map<?,?> map) |
static boolean |
isEmpty(Object value) |
static boolean |
isEmpty(Object[] arr) |
static boolean |
isEmpty(String value) |
static <T> Iterator<T> |
iterator(T[] arr) |
static String |
join(String sep,
char[][] items) |
static String |
join(String sep,
Iterable<?> items) |
static <T> String |
join(String sep,
T... items) |
static int |
limited(int min,
int value,
int max) |
static <T> List<T> |
list(Iterable<? extends T> values) |
static <T> List<T> |
list(T... values) |
static <K,V> Map<K,V> |
map() |
static <K,V> Map<K,V> |
map(K key,
V value) |
static <K,V> Map<K,V> |
map(K key1,
V value1,
K key2,
V value2) |
static <K,V> Map<K,V> |
map(K key1,
V value1,
K key2,
V value2,
K key3,
V value3) |
static <K,V> Map<K,V> |
map(K key1,
V value1,
K key2,
V value2,
K key3,
V value3,
K key4,
V value4) |
static <K,V> Map<K,V> |
map(K key1,
V value1,
K key2,
V value2,
K key3,
V value3,
K key4,
V value4,
K key5,
V value5) |
static <K,V> Map<K,V> |
map(Map<? extends K,? extends V> src) |
static <K,V> Map<K,V> |
map(Object... keysAndValues) |
static String |
mid(String s,
int beginIndex,
int endIndex) |
static boolean |
must(boolean expectedCondition) |
static boolean |
must(boolean expectedCondition,
String message) |
static boolean |
must(boolean expectedCondition,
String message,
long arg) |
static boolean |
must(boolean expectedCondition,
String message,
Object arg) |
static boolean |
must(boolean expectedCondition,
String message,
Object arg1,
Object arg2) |
static boolean |
must(boolean expectedCondition,
String message,
Object arg1,
Object arg2,
Object arg3) |
static String |
nice(String format,
Object... args) |
static RuntimeException |
notExpected() |
static <T> T |
notNull(T value,
String desc,
Object... descArgs) |
static void |
notNullAll(Object... items) |
static RuntimeException |
notReady() |
static RuntimeException |
notSupported() |
static int |
num(String s) |
static <T> T |
or(T value,
T fallback) |
static <T> Queue<T> |
queue(int maxSize) |
static String |
readable(Iterable<Object> coll) |
static String |
readable(Iterator<?> it) |
static String |
readable(Object obj) |
static String |
readable(Object[] objs) |
static String |
readableln(Object[] objs) |
static String |
render(Iterable<?> items,
String itemFormat,
String sep) |
static String |
render(Object[] items,
String itemFormat,
String sep) |
static String |
replaceText(String s,
String[][] repls) |
static RuntimeException |
rte(String message) |
static RuntimeException |
rte(String message,
Object... args) |
static RuntimeException |
rte(String message,
Throwable cause) |
static RuntimeException |
rte(String message,
Throwable cause,
Object... args) |
static RuntimeException |
rte(Throwable cause) |
static void |
rteIf(boolean failureCondition,
String msg) |
static void |
secure(boolean condition,
String msg) |
static void |
secure(boolean condition,
String msg,
Object arg) |
static void |
secure(boolean condition,
String msg,
Object arg1,
Object arg2) |
static <T> Set<T> |
set(Iterable<? extends T> values) |
static <T> Set<T> |
set(T... values) |
static void |
show(Object... values) |
static <T> T |
single(Iterable<T> coll) |
static <T> T |
singleOrNone(Iterable<T> coll) |
static long |
time() |
static String |
uncapitalized(String s) |
static boolean |
xor(boolean a,
boolean b) |
public static <T> Iterator<T> iterator(T[] arr)
public static <T> T[] array(T... items)
public static <T> Set<T> set(T... values)
public static <T> List<T> list(T... values)
public static <K,V> Map<K,V> map()
public static <K,V> Map<K,V> map(K key, V value)
public static <K,V> Map<K,V> map(K key1, V value1, K key2, V value2)
public static <K,V> Map<K,V> map(K key1, V value1, K key2, V value2, K key3, V value3)
public static <K,V> Map<K,V> map(K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4)
public static <K,V> Map<K,V> map(K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4, K key5, V value5)
public static <K,V> ConcurrentMap<K,V> concurrentMap(Map<? extends K,? extends V> src, boolean ignoreNullValues)
public static <K,V> ConcurrentMap<K,V> concurrentMap()
public static <K,V> ConcurrentMap<K,V> concurrentMap(K key, V value)
public static <K,V> ConcurrentMap<K,V> concurrentMap(K key1, V value1, K key2, V value2)
public static <K,V> ConcurrentMap<K,V> concurrentMap(K key1, V value1, K key2, V value2, K key3, V value3)
public static <K,V> ConcurrentMap<K,V> concurrentMap(K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4)
public static <K,V> ConcurrentMap<K,V> concurrentMap(K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4, K key5, V value5)
public static <K,V> ConcurrentMap<K,V> concurrentMap(Object... keysAndValues)
public static <T> Queue<T> queue(int maxSize)
public static <T> T or(T value,
T fallback)
public static long time()
public static boolean xor(boolean a,
boolean b)
public static RuntimeException rte(String message, Object... args)
public static RuntimeException rte(Throwable cause)
public static RuntimeException rte(String message)
public static RuntimeException notExpected()
public static IllegalArgumentException illegalArg(String message)
public static void rteIf(boolean failureCondition,
String msg)
public static boolean must(boolean expectedCondition,
String message)
public static RuntimeException rte(String message, Throwable cause, Object... args)
public static RuntimeException rte(String message, Throwable cause)
public static boolean must(boolean expectedCondition)
public static boolean must(boolean expectedCondition,
String message,
long arg)
public static boolean must(boolean expectedCondition,
String message,
Object arg1,
Object arg2)
public static boolean must(boolean expectedCondition,
String message,
Object arg1,
Object arg2,
Object arg3)
public static void secure(boolean condition,
String msg)
public static void bounds(int value,
int min,
int max)
public static void notNullAll(Object... items)
public static RuntimeException notReady()
public static RuntimeException notSupported()
public static void show(Object... values)
public static boolean isEmpty(String value)
public static boolean isEmpty(Object[] arr)
public static boolean isEmpty(Collection<?> coll)
public static boolean isEmpty(Iterable<?> iter)
public static boolean isEmpty(Map<?,?> map)
public static boolean isEmpty(Object value)
public static int num(String s)
public static int limited(int min,
int value,
int max)
public static <T> T single(Iterable<T> coll)
public static <T> T singleOrNone(Iterable<T> coll)
public static <T> int compare(T val1,
T val2)
Copyright © 2014–2015 Nikolche Mihajlovski. All rights reserved.