-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
3,747 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
common/src/main/java/conm/zhuazhu/common/constant/MemoryConstants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package conm.zhuazhu.common.constant; | ||
|
||
import android.support.annotation.IntDef; | ||
|
||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
|
||
/** | ||
* 创建时间:2018/1/17 11:43<br/> | ||
* 创建人: 李涛<br/> | ||
* 修改人: 李涛<br/> | ||
* 修改时间: 2018/1/17 11:43<br/> | ||
* 描述: | ||
*/ | ||
|
||
public interface MemoryConstants { | ||
/** | ||
* Byte 与 Byte 的倍数 | ||
*/ | ||
int BYTE = 1; | ||
/** | ||
* KB 与 Byte 的倍数 | ||
*/ | ||
int KB = 1024; | ||
/** | ||
* MB 与 Byte 的倍数 | ||
*/ | ||
int MB = 1048576; | ||
/** | ||
* GB 与 Byte 的倍数 | ||
*/ | ||
int GB = 1073741824; | ||
|
||
@IntDef({BYTE, KB, MB, GB}) | ||
@Retention(RetentionPolicy.SOURCE) | ||
public @interface Unit { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.