public class Utils extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static interface |
Utils.Callable<Rsp extends com.google.protobuf.Message,Req> |
| 构造器和说明 |
|---|
Utils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static okhttp3.OkHttpClient |
buildOkHTTPClient(Duration timeout) |
static String |
buildURL(String schema,
String host,
String path) |
static String |
bytes2Hex(byte[] bts) |
static <Rsp extends com.google.protobuf.Message,Req> |
doWithRetry(Utils.Callable<Rsp,Req> callable,
Req req,
Option[] opts,
int retryTimes) |
static boolean |
isAllEmptyString(String... str) |
static boolean |
isEmptyList(List<?> list) |
static boolean |
isEmptyString(String str) |
static boolean |
isNotEmptyList(List<?> list) |
static boolean |
noneEmptyString(String... str) |
public static <Rsp extends com.google.protobuf.Message,Req> Rsp doWithRetry(Utils.Callable<Rsp,Req> callable, Req req, Option[] opts, int retryTimes) throws BizException
BizExceptionpublic static String bytes2Hex(byte[] bts)
public static okhttp3.OkHttpClient buildOkHTTPClient(Duration timeout)
public static boolean noneEmptyString(String... str)
public static boolean isAllEmptyString(String... str)
public static boolean isEmptyString(String str)
public static boolean isEmptyList(List<?> list)
public static boolean isNotEmptyList(List<?> list)
Copyright © 2022. All rights reserved.