public class BladeKit extends Object
构造器和说明 |
---|
BladeKit() |
限定符和类型 | 方法和说明 |
---|---|
static boolean |
epollIsAvailable() |
static <T> void |
equalThen(T a,
T b,
BiConsumer<T,T> consumer) |
static long |
getCostMS(Instant start) |
static String |
getCurrentClassPath() |
static String |
getPrefixSymbol() |
static String |
getStartedSymbol() |
static void |
injection(Ioc ioc,
BeanDefine beanDefine) |
static void |
injectionValue(Environment environment,
BeanDefine beanDefine) |
static boolean |
isEmpty(Collection<?> c) |
static <T> boolean |
isEmpty(T[] arr) |
static boolean |
isInJar() |
static boolean |
isNotEmpty(Collection<?> c) |
static boolean |
isWebHook(HttpMethod httpMethod) |
static boolean |
isWindows() |
static long |
log200(org.slf4j.Logger log,
Instant start,
String method,
String uri) |
static void |
log304(org.slf4j.Logger log,
String method,
String uri) |
static void |
log403(org.slf4j.Logger log,
String method,
String uri) |
static void |
log404(org.slf4j.Logger log,
String method,
String uri) |
static void |
log500(org.slf4j.Logger log,
String method,
String uri) |
static void |
logAddRoute(org.slf4j.Logger log,
Route route) |
static boolean |
notIsWebHook(HttpMethod httpMethod) |
static <T> void |
notNullThen(T value,
Consumer<T> consumer) |
static <T> void |
okThen(T value,
Predicate<T> predicate,
Consumer<T> consumer) |
public static void injection(Ioc ioc, BeanDefine beanDefine)
public static void injectionValue(Environment environment, BeanDefine beanDefine)
public static boolean isEmpty(Collection<?> c)
public static <T> boolean isEmpty(T[] arr)
public static boolean isNotEmpty(Collection<?> c)
public static boolean isWebHook(HttpMethod httpMethod)
public static boolean notIsWebHook(HttpMethod httpMethod)
public static boolean epollIsAvailable()
public static <T> void equalThen(T a, T b, BiConsumer<T,T> consumer)
public static <T> void notNullThen(T value, Consumer<T> consumer)
public static boolean isInJar()
public static String getCurrentClassPath()
public static long getCostMS(Instant start)
public static boolean isWindows()
public static String getStartedSymbol()
public static String getPrefixSymbol()
public static void logAddRoute(org.slf4j.Logger log, Route route)
Copyright © 2018. All rights reserved.