| 限定符和类型 | 字段和说明 |
|---|---|
static Base64.Decoder |
base64Decoder |
static Base64.Encoder |
base64Encoder |
| 构造器和说明 |
|---|
$() |
| 限定符和类型 | 方法和说明 |
|---|---|
static List<Double> |
asDoubleList(String source) |
static List<Float> |
asFloatList(String source) |
static List<Integer> |
asIntegerList(String source) |
static List<String> |
asList(String text) |
static List<String> |
asList(String text,
String separatorChars) |
static List<Long> |
asLongList(String source) |
static List<String> |
asStringList(String source) |
static void |
copyProperties(Object source,
Object target) |
static String |
decode(String source) |
static boolean |
deepEquals(Object a,
Object b) |
static <T> List<T> |
distinct(List<T> list) |
static String |
encode(String source) |
static boolean |
equals(Object a,
Object b) |
static String |
fingerprint(String str) |
static String |
format(Date date,
String pattern) |
static String |
format(LocalDate localDate,
DateTimeFormatter dateTimeFormatter) |
static String |
format(LocalDate localDate,
String pattern) |
static String |
format(LocalDateTime localDateTime,
DateTimeFormatter dateTimeFormatter) |
static String |
format(LocalDateTime localDateTime,
String pattern) |
static LocalDateTime |
from(Date date) |
static Date |
from(LocalDateTime localDateTime) |
static int |
getAge(Date birthday) |
static long |
getAppId() |
static String |
getAstrologyName(Date date) |
static String |
getChineseZodiac(int year) |
static String |
getCookieVal(javax.servlet.http.HttpServletRequest request,
String name) |
static String |
getCookieVal(String name) |
static <T> T |
getFirst(List<T> list) |
static <T> T |
getLast(List<T> list) |
static <T> Map<String,T> |
getPairMap(List<Map<String,T>> list,
String keyName,
String valName) |
static String |
getPoundContent(String source) |
static String |
getPoundSubject(String source) |
static int |
getRateIndex(List<Integer> rates) |
static <T> RatePair<T> |
getRatePair(List<RatePair<T>> list) |
static javax.servlet.http.HttpServletRequest |
getRequest() |
static org.springframework.web.context.request.RequestAttributes |
getRequestAttributes() |
static String |
getRequestIP() |
static javax.servlet.http.HttpServletResponse |
getResponse() |
static org.springframework.http.HttpHeaders |
getResponseHeaders(org.springframework.http.MediaType mediaType) |
static <T> T |
getService(Class<T> interfaceClass)
查询 SPI 的实现类。
|
static javax.servlet.http.HttpSession |
getSession() |
static String |
getSystemProperty(String key,
String defaultVal) |
static String |
getTmpDir() |
static String |
i18nName(Locale locale) |
static boolean |
isBlank(CharSequence cs) |
static boolean |
isChinese(char c) |
static boolean |
isChinese(String code) |
static boolean |
isEmpty(Collection<?> coll) |
static boolean |
isEmpty(Map<?,?> map) |
static boolean |
isHttpsUrl(String url) |
static boolean |
isHttpUrl(String url) |
static boolean |
isNotBlank(CharSequence cs) |
static boolean |
isNotEmpty(Collection<?> coll) |
static boolean |
isNotEmpty(Map<?,?> map) |
static boolean |
isOnFor(String config,
long id) |
static boolean |
isOnHalf(long id) |
static String |
join(List<String> coll) |
static String |
joinList(List<String> coll,
CharSequence delimiter) |
static Map |
jsonToMap(String json) |
static String |
left(String str,
int len) |
static String |
leftPad(String str,
int size,
char padChar) |
static String |
likeFull(String source) |
static String |
likePrefix(String source) |
static int |
limit(int number,
int min,
int max) |
static String |
md5Hex(byte[] bytes) |
static String |
md5Hex(InputStream inputStream) |
static String |
md5Hex(String data) |
static String |
md5Hex(String data,
String salt) |
static <T> List<T> |
merge(Collection<T>... coll) |
static String |
mosaicRoomId(String source) |
static Date |
nowDate() |
static String |
nowFormat(DateTimeFormatter formatter) |
static String |
nowFormat(String pattern) |
static long |
nowTime() |
static <K,V> Map<K,V> |
ofConcurrentHashMap(Object... keysValues) |
static void |
openDir(String outputDir) |
static <T> T |
parseObject(String json,
Class<T> clazz) |
static String |
randomAlphanumeric(int size) |
static <T> List<T> |
randomList(Collection<T> list) |
static <T> List<T> |
randomList(List<T> list,
int size) |
static List<Number> |
randomNumberList(int size) |
static String |
randomNumberString(int size) |
static org.springframework.web.servlet.view.RedirectView |
redirect(String uri) |
static String |
repeat(char ch,
int repeat) |
static String |
repeat(String str,
int repeat) |
static String |
right(String str,
int len) |
static void |
setCookie(javax.servlet.http.HttpServletResponse response,
String name,
String value) |
static void |
setCookie(javax.servlet.http.HttpServletResponse response,
String name,
String value,
int maxAgeInSeconds) |
static void |
setCookie(javax.servlet.http.HttpServletResponse response,
String domain,
String name,
String value,
int maxAgeInSeconds) |
static void |
setCookie(javax.servlet.http.HttpServletResponse response,
String domain,
String path,
String name,
String value,
int maxAgeInSeconds) |
static void |
setCookie(String name,
String value) |
static void |
setCookie(String name,
String value,
int maxAgeInSeconds) |
static void |
setCookie(String domain,
String name,
String value,
int maxAgeInSeconds) |
static void |
setCookie(String domain,
String path,
String name,
String value,
int maxAgeInSeconds) |
static long |
skipDecrypt(long id) |
static long |
skipDecrypt(String encode,
int[] cipher) |
static long |
skipDecryptId(String encode) |
static long |
skipEncrypt(long id) |
static String |
skipEncrypt(long id,
int[] cipher) |
static String |
skipEncryptId(long id) |
static String[] |
split(String str) |
static String[] |
split(String str,
String delimiter) |
static String |
substring(String str,
int start) |
static String |
substring(String str,
int start,
int end) |
static String |
toDBC(String source) |
static void |
toFile(BufferedImage image,
File target) |
static org.springframework.http.ResponseEntity<org.springframework.core.io.Resource> |
toImageEntity(BufferedImage image) |
static org.springframework.http.ResponseEntity<org.springframework.core.io.Resource> |
toImageEntity(org.springframework.core.io.Resource resource) |
static String |
toJSON(Object object) |
static String |
toLowerCase(String str) |
static org.springframework.core.io.Resource |
toResource(BufferedImage image) |
static String |
toSBC(String source) |
static String |
toScore(int score) |
static String |
toScore(long score) |
static SkipJack |
toSkipJack(int[] cipher) |
static <T extends TreeHandler<T>> |
toTree(List<T> list) |
static String |
toUpperCase(String str) |
static org.springframework.web.servlet.ModelAndView |
toView(String viewPath) |
static org.springframework.web.servlet.ModelAndView |
toView(String viewPath,
Map context) |
static String |
trimToEmpty(String str) |
static String |
trimToNull(String str) |
static byte |
val(Byte source) |
static byte |
val(Byte source,
byte defaultVal) |
static char |
val(Character source) |
static char |
val(Character source,
char defaultVal) |
static double |
val(Double source) |
static double |
val(Double source,
double defaultVal) |
static float |
val(Float source) |
static float |
val(Float source,
float defaultVal) |
static int |
val(Integer source) |
static int |
val(Integer source,
int defaultVal) |
static long |
val(Long source) |
static long |
val(Long source,
long defaultVal) |
static String |
val(String source) |
static String |
val(String source,
String defaultVal) |
public static final Base64.Encoder base64Encoder
public static final Base64.Decoder base64Decoder
public static String getTmpDir()
public static void openDir(String outputDir)
public static long getAppId()
public static char val(Character source)
public static char val(Character source, char defaultVal)
public static float val(Float source)
public static float val(Float source, float defaultVal)
public static double val(Double source)
public static double val(Double source, double defaultVal)
public static byte val(Byte source)
public static byte val(Byte source, byte defaultVal)
public static int val(Integer source)
public static int val(Integer source, int defaultVal)
public static long val(Long source)
public static long val(Long source, long defaultVal)
public static boolean isHttpUrl(String url)
public static boolean isHttpsUrl(String url)
public static boolean isChinese(String code)
public static boolean isChinese(char c)
public static long nowTime()
public static Date nowDate()
public static String getChineseZodiac(int year)
public static int getAge(Date birthday)
public static Date from(LocalDateTime localDateTime)
public static LocalDateTime from(Date date)
public static String format(LocalDateTime localDateTime, String pattern)
public static String format(LocalDateTime localDateTime, DateTimeFormatter dateTimeFormatter)
public static String format(LocalDate localDate, DateTimeFormatter dateTimeFormatter)
public static String nowFormat(DateTimeFormatter formatter)
public static String joinList(List<String> coll, CharSequence delimiter)
public static String toScore(int score)
public static String toScore(long score)
public static int limit(int number,
int min,
int max)
public static boolean isBlank(CharSequence cs)
public static boolean isNotBlank(CharSequence cs)
public static boolean isEmpty(Collection<?> coll)
public static boolean isNotEmpty(Collection<?> coll)
public static boolean isEmpty(Map<?,?> map)
public static boolean isNotEmpty(Map<?,?> map)
public static boolean isOnFor(String config, long id)
public static boolean isOnHalf(long id)
public static <T> T getFirst(List<T> list)
public static <T> T getLast(List<T> list)
public static <T> List<T> merge(Collection<T>... coll)
public static <T> Map<String,T> getPairMap(List<Map<String,T>> list, String keyName, String valName)
public static String md5Hex(InputStream inputStream) throws Exception
Exceptionpublic static String md5Hex(byte[] bytes)
public static String randomNumberString(int size)
public static SkipJack toSkipJack(int[] cipher)
public static String skipEncrypt(long id, int[] cipher)
public static long skipDecrypt(String encode, int[] cipher)
public static String skipEncryptId(long id)
public static long skipDecryptId(String encode)
public static long skipEncrypt(long id)
public static long skipDecrypt(long id)
public static <T extends TreeHandler<T>> List<T> toTree(List<T> list)
public static String repeat(char ch, int repeat)
public static <T> List<T> randomList(Collection<T> list)
public static String randomAlphanumeric(int size)
public static <T> T getService(Class<T> interfaceClass) throws ClassNotFoundException
T - 接口类型interfaceClass - SPI 接口ClassNotFoundException - 如果没有找到实现类,则抛此异常@Nullable public static javax.servlet.http.HttpServletRequest getRequest()
@Nullable public static javax.servlet.http.HttpServletResponse getResponse()
@Nullable public static org.springframework.web.context.request.RequestAttributes getRequestAttributes()
@Nullable public static org.springframework.http.HttpHeaders getResponseHeaders(org.springframework.http.MediaType mediaType)
@Nullable public static javax.servlet.http.HttpSession getSession()
@Nullable public static String getCookieVal(javax.servlet.http.HttpServletRequest request, String name)
public static String getRequestIP()
public static void setCookie(String domain, String name, @Nullable String value, int maxAgeInSeconds)
public static void setCookie(String domain, String path, String name, @Nullable String value, int maxAgeInSeconds)
public static void setCookie(javax.servlet.http.HttpServletResponse response,
String name,
@Nullable
String value)
public static void setCookie(javax.servlet.http.HttpServletResponse response,
String name,
@Nullable
String value,
int maxAgeInSeconds)
public static void setCookie(javax.servlet.http.HttpServletResponse response,
String domain,
String name,
@Nullable
String value,
int maxAgeInSeconds)
public static void setCookie(javax.servlet.http.HttpServletResponse response,
String domain,
String path,
String name,
@Nullable
String value,
int maxAgeInSeconds)
public static org.springframework.core.io.Resource toResource(BufferedImage image)
public static void toFile(BufferedImage image, File target)
public static org.springframework.http.ResponseEntity<org.springframework.core.io.Resource> toImageEntity(org.springframework.core.io.Resource resource)
public static org.springframework.http.ResponseEntity<org.springframework.core.io.Resource> toImageEntity(BufferedImage image)
public static org.springframework.web.servlet.ModelAndView toView(String viewPath)
public static org.springframework.web.servlet.ModelAndView toView(String viewPath, Map context)
public static org.springframework.web.servlet.view.RedirectView redirect(String uri)
Copyright © 2023 wuyushuo. All rights reserved.