Package | Description |
---|---|
com.auxiliary.http | |
com.auxiliary.tool.date |
Modifier and Type | Field and Description |
---|---|
static Entry<Long,TimeUnit> |
EasyHttp.connectTime
定义默认连接超时时间,仅对使用默认时间的静态方法生效
|
protected Entry<Long,TimeUnit> |
InterfaceInfo.connectTime
存储接口的请求时间
|
static Entry<Long,TimeUnit> |
InterfaceInfo.DEFAULT_CONNECT_TIME
定义默认接口请求超时时间
|
Modifier and Type | Method and Description |
---|---|
Entry<Long,TimeUnit> |
InterfaceInfo.getConnectTime()
该方法用于返回当前接口设置的请求超时时间
|
Modifier and Type | Method and Description |
---|---|
void |
InterfaceInfo.setConnectTime(long connectTime,
TimeUnit timeUnit)
该方法用于设置接口的连接超时时间
|
Modifier and Type | Method and Description |
---|---|
static TimeUnit |
TimeUnit.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TimeUnit[] |
TimeUnit.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
Time |
Time.addTime(double num,
TimeUnit timeUnit)
用于根据条件计算日期/时间,方法允许传入小数与负数进行计算
|
boolean |
Time.equalsForUnit(Time compareTime,
TimeUnit timeUnit)
用于根据最小比较单位,对时间进行比较
|
static Time |
TimeUtil.randomTime(Time startTime,
Time endTime,
TimeUnit timeUnit)
用于随机生成一个起始时间与结束时间范围内的一个时间
|
static Time |
TimeUtil.randomTime(Time time,
TimeUnit timeUnit)
用于以当前时间和指定的时间为随机时间范围,生成一个随机的时间
|
Time |
Time.setTime(int timeNum,
TimeUnit timeUnit)
用于对日期/时间中的指定单位进行赋值
|
Copyright © 2024. All rights reserved.