All Methods Static Methods Concrete Methods
Modifier and Type |
Method and Description |
static <T> T |
CAST(Object value) |
static <T> T |
CAST(Object value,
Class<T> type) |
static Date |
COPY(Date date) |
static String |
failIfNullBytePresent(CharSequence value) |
static String |
fixContentType(CharSequence value) |
static String |
fixContentType(CharSequence value,
CharSequence name) |
static String |
fixRegionString(CharSequence value) |
static String |
fixRegionString(CharSequence value,
String otherwise) |
static String |
format(CharSequence format,
Object... args) |
static String |
format(Date date) |
static byte[] |
getBytes(CharSequence value) |
static String |
getCharSequence(CharSequence value) |
static String |
getDefaultContentType() |
static SimpleDateFormat |
getDefaultDateFormat() |
static TimeZone |
getDefaultTimeZone() |
static Integer |
getDuration(Duration time) |
static Integer |
getDuration(Long time) |
static Integer |
getDuration(Long time,
TimeUnit unit) |
static String |
getETagSequence(CharSequence value) |
static InputStream |
getInputStream(File file) |
static InputStream |
getInputStream(Path path) |
static String |
getJAVAContentType() |
static String |
getJSONContentType() |
static String |
getPROPContentType() |
static <T> Stream<T> |
getResultAsStream(Iterable<Result<T>> iterable) |
static <T> T |
getResultNullable(Result<T> result) |
static long |
getSize(File file) |
static long |
getSize(Path path) |
static String |
getYAMLContentType() |
static boolean |
isNonNull(Object value) |
static boolean |
isNull(Object value) |
static Log |
LOGS(Class<?> type) |
static <T> T |
NULL() |
static <T> T |
NULL(Class<T> type) |
static String |
repeat(CharSequence string,
int times) |
static <T> T |
requireNonNull(T value) |
static <T> T |
requireNonNull(T value,
String reason) |
static <T> T |
requireNonNull(T value,
Supplier<String> reason) |
static <T> T |
requireNonNullOrElse(T value,
Supplier<T> otherwise) |
static <T> T |
requireNonNullOrElse(T value,
T otherwise) |
static String |
requireToString(CharSequence value) |
static <T> T |
SAFE(Object value,
Class<T> type) |
static void |
testAllNonNull(Object... values) |
static <T> T |
toJSONObject(CharSequence value,
Class<T> type) |
static <T> T |
toJSONObject(InputStream value,
Class<T> type) |
static <T> T |
toJSONObject(Resource value,
Class<T> type) |
static String |
toJSONString(Object value) |
static String |
toJSONString(Object value,
boolean pretty) |
static <T> ArrayList<T> |
toList(Stream<T> source) |
static <T> ArrayList<T> |
toList(T... source) |
static <T> Optional<T> |
toOptional(T value) |
static String |
toStringOrElse(CharSequence value,
String otherwise) |
static String |
toStringOrElse(CharSequence value,
Supplier<String> otherwise) |
static <T> T |
toValueNonNull(Supplier<T> supplier) |
static String |
uuid() |
static String |
UUID() |