Skip to content

Commit

Permalink
change javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
YangSen-qn committed Nov 30, 2023
1 parent 7b27280 commit b091623
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

/**
* Created by bailong on 16/9/7.
*
* @hidden
*/
public interface NetReadyHandler {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import java.util.Random;

/**
* server config monitor
* 服务控制监控
*/
public class ServerConfigMonitor {
private static final String TransactionKey = "ServerConfig";
Expand Down
14 changes: 14 additions & 0 deletions library/src/main/java/com/qiniu/android/utils/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ public static String sdkLanguage() {
* 获取 PID
*
* @return PID
* @hidden
*/
public static Integer getCurrentProcessID() {
return android.os.Process.myPid();
Expand All @@ -76,6 +77,7 @@ public static Integer getCurrentProcessID() {
* 获取 TID
*
* @return TID
* @hidden
*/
public static Long getCurrentThreadID() {
Thread thread = Thread.currentThread();
Expand All @@ -86,6 +88,7 @@ public static Long getCurrentThreadID() {
* 获取系统名
*
* @return 系统名
* @hidden
*/
public static String systemName() {
try {
Expand Down Expand Up @@ -119,6 +122,7 @@ private static String deviceName(String manufacturer, String model) {
* 获取系统版本
*
* @return 系统版本
* @hidden
*/
public static String systemVersion() {
try {
Expand All @@ -136,6 +140,7 @@ public static String systemVersion() {
* 获取信号强度
*
* @return 信号强度
* @hidden
*/
@Deprecated
public static Integer getCurrentSignalStrength() {
Expand All @@ -146,6 +151,7 @@ public static Integer getCurrentSignalStrength() {
* 获取网络类型
*
* @return 网络类型
* @hidden
*/
public static String getCurrentNetworkType() {
Context context = ContextGetter.applicationContext();
Expand All @@ -160,6 +166,7 @@ public static String getCurrentNetworkType() {
* 单位:毫秒
*
* @return 当前时间戳
* @hidden
*/
public static long currentTimestamp() {
return new Date().getTime();
Expand All @@ -170,6 +177,7 @@ public static long currentTimestamp() {
* 单位:秒
*
* @return 当前时间戳
* @hidden
*/
public static long currentSecondTimestamp() {
return currentTimestamp() / 1000;
Expand All @@ -181,6 +189,7 @@ public static long currentSecondTimestamp() {
* @param startDate 开始时间
* @param endDate 结束时间
* @return 时间间隔
* @hidden
*/
public static long dateDuration(Date startDate, Date endDate) {
if (startDate != null && endDate != null) {
Expand All @@ -196,6 +205,7 @@ public static long dateDuration(Date startDate, Date endDate) {
* @param bytes 单位: B
* @param totalTime 单位:ms
* @return 速度
* @hidden
*/
public static Long calculateSpeed(Long bytes, Long totalTime) {
if (bytes == null || bytes < 0 || totalTime == null || totalTime == 0) {
Expand Down Expand Up @@ -223,6 +233,7 @@ public static String sdkDirectory() {
*
* @param string 字符串
* @return Escape 后的字符串
* @hidden
*/
public static String formEscape(String string) {
if (string == null) {
Expand All @@ -240,6 +251,7 @@ public static String formEscape(String string) {
* @param ip ip
* @param host host
* @return ip 类型
* @hidden
*/
@Deprecated
public static String getIpType(String ip, String host) {
Expand All @@ -262,6 +274,7 @@ public static String getIpType(String ip, String host) {
* @param ip ip
* @param host host
* @return ip 类型
* @hidden
*/
public static String getIpType(String httpVersion, String ip, String host) {
if (httpVersion == null) {
Expand All @@ -285,6 +298,7 @@ public static String getIpType(String httpVersion, String ip, String host) {
*
* @param ip ip
* @return 是否为 IPv6
* @hidden
*/
public static boolean isIpv6(String ip) {
if (StringUtils.isNullOrEmpty(ip)) {
Expand Down

0 comments on commit b091623

Please sign in to comment.