Skip to content

Commit 027e305

Browse files
committed
see 12/09 log
1 parent efe92cf commit 027e305

File tree

2 files changed

+525
-530
lines changed

2 files changed

+525
-530
lines changed
Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,43 @@
1-
package com.blankj.utilcode.constant
1+
package com.blankj.utilcode.constant;
22

3-
import android.support.annotation.IntDef
3+
import android.support.annotation.IntDef;
44

5-
import java.lang.annotation.Retention
6-
import java.lang.annotation.RetentionPolicy
5+
import java.lang.annotation.Retention;
6+
import java.lang.annotation.RetentionPolicy;
77

88
/**
99
* <pre>
10-
* author: Blankj
11-
* blog : http://blankj.com
12-
* time : 2017/03/13
13-
* desc : 时间相关常量
14-
</pre> *
10+
* author: Blankj
11+
* blog : http://blankj.com
12+
* time : 2017/03/13
13+
* desc : 时间相关常量
14+
* </pre>
1515
*/
16-
object TimeConstants {
16+
public final class TimeConstants {
1717

1818
/**
19-
* 毫秒与毫秒的倍数
19+
* 秒与毫秒的倍数
2020
*/
21-
val MSEC = 1
21+
public static final int MSEC = 1;
2222
/**
2323
* 秒与毫秒的倍数
2424
*/
25-
val SEC = 1000
25+
public static final int SEC = 1000;
2626
/**
2727
* 分与毫秒的倍数
2828
*/
29-
val MIN = 60000
29+
public static final int MIN = 60000;
3030
/**
3131
* 时与毫秒的倍数
3232
*/
33-
val HOUR = 3600000
33+
public static final int HOUR = 3600000;
3434
/**
3535
* 天与毫秒的倍数
3636
*/
37-
val DAY = 86400000
37+
public static final int DAY = 86400000;
3838

39-
@IntDef(MSEC.toLong(), SEC.toLong(), MIN.toLong(), HOUR.toLong(), DAY.toLong())
39+
@IntDef({MSEC, SEC, MIN, HOUR, DAY})
4040
@Retention(RetentionPolicy.SOURCE)
41-
annotation class Unit
41+
public @interface Unit {
42+
}
4243
}

0 commit comments

Comments
 (0)