Package org.miaixz.bus.core.lang
Class Normal
java.lang.Object
org.miaixz.bus.core.lang.Normal
- Direct Known Subclasses:
Consts
默认常量
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe number -1static final intThe number -10static final intThe number -2static final intThe number -3static final intThe number -4static final intThe number -5static final intThe number -6static final intThe number -7static final intThe number -8static final intThe number -9static final intThe number 0static final intThe number 1static final intThe number 9static final intThe number 1024 1.二进制计数的基本计量单位 2.广大程序员的共同节日 3.由于特殊性置顶static final intThe number 12static final intThe number 128static final intThe number 16static final intThe number 16384static final intThe number 18static final intThe number 2static final intThe number 20static final intThe number 2048static final intThe number 24static final intThe number 256static final intThe number 3static final intThe number 32static final intThe number 32768static final intThe number 4static final intThe number 5static final intThe number 512static final intThe number 6static final intThe number 64static final intThe number 65535static final intThe number 7static final intThe number 8static final intThe number 8192static final intThe number 9static final String字符串: 字母static final ByteReusable Byte constant for minus one.static final ByteReusable Byte constant for one.static final ByteReusable Byte constant for zero.static final longBytes per Gigabyte(GB).static final longBytes per Kilobyte(KB).static final longBytes per Megabyte(MB).static final longBytes per Terabyte(TB).static final String[]字节计量单位static final String针对ClassPath路径的伪协议前缀: "classpath:"static final String缺省的币种代码,为CNY(人民币)。static final String[]七色static final byte[]base64解码表static final float默认增长因子,当Map的size达到 容量*增长因子时,开始扩充Mapstatic final char[]用于建立十六进制字符的输出的小写字符数组static final char[]用于建立十六进制字符的输出的大写字符数组static final String禁用static final DoubleReusable Double constant for minus one.static final DoubleReusable Double constant for one.static final DoubleReusable Double constant for zero.static final String字符串:空static final boolean[]booleanarray.static final Boolean[]Booleanarray.static final byte[]bytearray.static final Byte[]Bytearray.static final char[]chararray.static final Character[]Characterarray.static final Class<?>[]Classarray.static final Date[]Datearray.static final double[]doublearray.static final Double[]Doublearray.static final float[]floatarray.static final Float[]Floatarray.static final int[]intarray.static final Integer[]Integerarray.static final long[]longarray.static final Long[]Longarray.static final Object[]Objectarray.static final short[]shortarray.static final Short[]Shortarray.static final String[]Stringarray.static final String[]英文数字1-9static final String[]英文数字千-亿static final String[]英文数字10-19static final String[]英文数字10-90static final String启用static final byte[]base64编码表static final Stringequalsstatic final String假/否static final String[]表示为假的字符串static final StringURL 前缀表示文件: "file:"static final FloatReusable Float constant for minus one.static final FloatReusable Float constant for one.static final FloatReusable Float constant for zero.static final Stringgetstatic final StringhashCodestatic final String十六进制错误static final IntegerReusable Integer constant for minus one.static final IntegerReusable Integer constant for one.static final IntegerReusable Integer constant for twostatic final IntegerReusable Integer constant for zero.static final Stringisstatic final StringURL 前缀表示jar: "jar:"static final StringJar路径以及内部文件路径的分界符: "!/"static final StringLIB 协议表示lib文件: "lib"static final LongReusable Long constant for minus one.static final LongReusable Long constant for one.static final LongReusable Long constant for zero.static final String字符串: 小字母数字static final String元数据: "META-INF"static final String元数据: "META-INF/services"static final String字符串:nullstatic final String字符串: 数字static final char[]简体中文运算符static final Stringsetstatic final ShortReusable Short constant for minus one.static final ShortReusable Short constant for one.static final ShortReusable Short constant for zero.static final String[]简体中文形式static final String[]简体中文单位static final StringtoStringstatic final String[]繁体中文形式static final String[]繁体中文单位static final String真/是static final String[]表示为真的字符串static final String字符串:undefinedstatic final String字符串:unknownstatic final String字符串: 大字母数字static final StringURL 协议表示文件: "file"static final StringURL 协议表示Jar文件: "jar"static final StringURL 协议表示JBoss VFS资源: "vfs"static final StringURL 协议表示JBoss文件: "vfsfile"static final StringURL 协议表示JBoss zip文件: "vfszip"static final StringURL 协议表示WebSphere文件: "wsjar"static final StringURL 协议表示zip文件: "zip"static final StringURL 前缀表示war: "war:"static final StringWAR路径及内部文件路径分界符 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisFileOrVfsURL(URL url) 提供的URL是否为文件 文件协议包括"file", "vfsfile" 或 "vfs".static boolean提供的URL是否为文件 文件协议包括"file".static booleanisJarFileURL(URL url) 提供的URL是否为Jar文件URL 判断依据为file协议且扩展名为.jarstatic boolean提供的URL是否为jar包URL 协议包括: "jar", "zip", "vfszip" 或 "wsjar".static boolean提供的URL是否为文件 文件协议包括"vfsfile" 或 "vfs".
-
Field Details
-
_1024
public static final int _1024The number 1024 1.二进制计数的基本计量单位 2.广大程序员的共同节日 3.由于特殊性置顶- See Also:
-
_32768
public static final int _32768The number 32768- See Also:
-
_16384
public static final int _16384The number 16384- See Also:
-
_8192
public static final int _8192The number 8192- See Also:
-
_2048
public static final int _2048The number 2048- See Also:
-
_512
public static final int _512The number 512- See Also:
-
_256
public static final int _256The number 256- See Also:
-
_128
public static final int _128The number 128- See Also:
-
_64
public static final int _64The number 64- See Also:
-
_32
public static final int _32The number 32- See Also:
-
_24
public static final int _24The number 24- See Also:
-
_20
public static final int _20The number 20- See Also:
-
_18
public static final int _18The number 18- See Also:
-
_16
public static final int _16The number 16- See Also:
-
_12
public static final int _12The number 12- See Also:
-
_10
public static final int _10The number 9- See Also:
-
_9
public static final int _9The number 9- See Also:
-
_8
public static final int _8The number 8- See Also:
-
_7
public static final int _7The number 7- See Also:
-
_6
public static final int _6The number 6- See Also:
-
_5
public static final int _5The number 5- See Also:
-
_4
public static final int _4The number 4- See Also:
-
_3
public static final int _3The number 3- See Also:
-
_2
public static final int _2The number 2- See Also:
-
_1
public static final int _1The number 1- See Also:
-
_0
public static final int _0The number 0- See Also:
-
__1
public static final int __1The number -1- See Also:
-
__2
public static final int __2The number -2- See Also:
-
__3
public static final int __3The number -3- See Also:
-
__4
public static final int __4The number -4- See Also:
-
__5
public static final int __5The number -5- See Also:
-
__6
public static final int __6The number -6- See Also:
-
__7
public static final int __7The number -7- See Also:
-
__8
public static final int __8The number -8- See Also:
-
__9
public static final int __9The number -9- See Also:
-
__10
public static final int __10The number -10- See Also:
-
_65535
public static final int _65535The number 65535- See Also:
-
LONG_ZERO
Reusable Long constant for zero. -
LONG_ONE
Reusable Long constant for one. -
LONG_MINUS_ONE
Reusable Long constant for minus one. -
INTEGER_ZERO
Reusable Integer constant for zero. -
INTEGER_ONE
Reusable Integer constant for one. -
INTEGER_TWO
Reusable Integer constant for two -
INTEGER_MINUS_ONE
Reusable Integer constant for minus one. -
SHORT_ZERO
Reusable Short constant for zero. -
SHORT_ONE
Reusable Short constant for one. -
SHORT_MINUS_ONE
Reusable Short constant for minus one. -
BYTE_ZERO
Reusable Byte constant for zero. -
BYTE_ONE
Reusable Byte constant for one. -
BYTE_MINUS_ONE
Reusable Byte constant for minus one. -
DOUBLE_ZERO
Reusable Double constant for zero. -
DOUBLE_ONE
Reusable Double constant for one. -
DOUBLE_MINUS_ONE
Reusable Double constant for minus one. -
FLOAT_ZERO
Reusable Float constant for zero. -
FLOAT_ONE
Reusable Float constant for one. -
FLOAT_MINUS_ONE
Reusable Float constant for minus one. -
EMPTY_OBJECT_ARRAY
Objectarray. -
EMPTY_CLASS_ARRAY
Classarray. -
EMPTY_STRING_ARRAY
Stringarray. -
EMPTY_LONG_ARRAY
public static final long[] EMPTY_LONG_ARRAYlongarray. -
EMPTY_LONG_OBJECT_ARRAY
Longarray. -
EMPTY_INT_ARRAY
public static final int[] EMPTY_INT_ARRAYintarray. -
EMPTY_INTEGER_OBJECT_ARRAY
Integerarray. -
EMPTY_SHORT_ARRAY
public static final short[] EMPTY_SHORT_ARRAYshortarray. -
EMPTY_SHORT_OBJECT_ARRAY
Shortarray. -
EMPTY_BYTE_ARRAY
public static final byte[] EMPTY_BYTE_ARRAYbytearray. -
EMPTY_BYTE_OBJECT_ARRAY
Bytearray. -
EMPTY_DOUBLE_ARRAY
public static final double[] EMPTY_DOUBLE_ARRAYdoublearray. -
EMPTY_DOUBLE_OBJECT_ARRAY
Doublearray. -
EMPTY_FLOAT_ARRAY
public static final float[] EMPTY_FLOAT_ARRAYfloatarray. -
EMPTY_FLOAT_OBJECT_ARRAY
Floatarray. -
EMPTY_BOOLEAN_ARRAY
public static final boolean[] EMPTY_BOOLEAN_ARRAYbooleanarray. -
EMPTY_BOOLEAN_OBJECT_ARRAY
Booleanarray. -
EMPTY_CHAR_ARRAY
public static final char[] EMPTY_CHAR_ARRAYchararray. -
EMPTY_CHARACTER_OBJECT_ARRAY
Characterarray. -
EMPTY_DATE_OBJECT_ARRAY
Datearray. -
BYTES_PER_KB
public static final long BYTES_PER_KBBytes per Kilobyte(KB).- See Also:
-
BYTES_PER_MB
public static final long BYTES_PER_MBBytes per Megabyte(MB).- See Also:
-
BYTES_PER_GB
public static final long BYTES_PER_GBBytes per Gigabyte(GB).- See Also:
-
BYTES_PER_TB
public static final long BYTES_PER_TBBytes per Terabyte(TB).- See Also:
-
DEFAULT_LOAD_FACTOR
public static final float DEFAULT_LOAD_FACTOR默认增长因子,当Map的size达到 容量*增长因子时,开始扩充Map- See Also:
-
NUMBER
字符串: 数字- See Also:
-
ALPHABET
字符串: 字母- See Also:
-
LOWER_ALPHABET_NUMBER
字符串: 小字母数字- See Also:
-
UPPER_ALPHABET_NUMBER
字符串: 大字母数字 -
EMPTY
字符串:空- See Also:
-
NULL
字符串:null- See Also:
-
TRUE
真/是- See Also:
-
FALSE
假/否- See Also:
-
ENABLED
启用- See Also:
-
DISABLED
禁用- See Also:
-
IS
is- See Also:
-
SET
set- See Also:
-
GET
get- See Also:
-
EQUALS
equals- See Also:
-
HASHCODE
hashCode- See Also:
-
TOSTRING
toString- See Also:
-
UNKNOWN
字符串:unknown- See Also:
-
UNDEFINED
字符串:undefined- See Also:
-
FILE_URL_PREFIX
URL 前缀表示文件: "file:"- See Also:
-
JAR_URL_PREFIX
URL 前缀表示jar: "jar:"- See Also:
-
WAR_URL_PREFIX
URL 前缀表示war: "war:"- See Also:
-
CLASSPATH
针对ClassPath路径的伪协议前缀: "classpath:"- See Also:
-
META_INF
元数据: "META-INF"- See Also:
-
META_INF_SERVICES
元数据: "META-INF/services"- See Also:
-
URL_PROTOCOL_FILE
URL 协议表示文件: "file"- See Also:
-
URL_PROTOCOL_JAR
URL 协议表示Jar文件: "jar"- See Also:
-
LIB_PROTOCOL_JAR
LIB 协议表示lib文件: "lib"- See Also:
-
URL_PROTOCOL_ZIP
URL 协议表示zip文件: "zip"- See Also:
-
URL_PROTOCOL_WSJAR
URL 协议表示WebSphere文件: "wsjar"- See Also:
-
URL_PROTOCOL_VFSZIP
URL 协议表示JBoss zip文件: "vfszip"- See Also:
-
URL_PROTOCOL_VFSFILE
URL 协议表示JBoss文件: "vfsfile"- See Also:
-
URL_PROTOCOL_VFS
URL 协议表示JBoss VFS资源: "vfs"- See Also:
-
JAR_URL_SEPARATOR
Jar路径以及内部文件路径的分界符: "!/"- See Also:
-
WAR_URL_SEPARATOR
WAR路径及内部文件路径分界符- See Also:
-
HEX_ERROR
十六进制错误- See Also:
-
OPERATOR_ZH
public static final char[] OPERATOR_ZH简体中文运算符 -
CAPACITY_NAMES
字节计量单位byte 1B 1 kilobyte 1KB 1,024 megabyte 1MB 1,048,576 gigabyte 1GB 1,073,741,824 terabyte 1TB 1,099,511,627,776 -
COLOR
七色 -
CNY
缺省的币种代码,为CNY(人民币)。- See Also:
-
SIMPLE_UNITS
简体中文单位 -
TRADITIONAL_UNITS
繁体中文单位 -
SIMPLE_DIGITS
简体中文形式 -
TRADITIONAL_DIGITS
繁体中文形式 -
EN_NUMBER
英文数字1-9 -
EN_NUMBER_TEEN
英文数字10-19 -
EN_NUMBER_TEN
英文数字10-90 -
EN_NUMBER_MORE
英文数字千-亿 -
TRUE_ARRAY
表示为真的字符串 -
FALSE_ARRAY
表示为假的字符串 -
DIGITS_16_LOWER
public static final char[] DIGITS_16_LOWER用于建立十六进制字符的输出的小写字符数组 -
DIGITS_16_UPPER
public static final char[] DIGITS_16_UPPER用于建立十六进制字符的输出的大写字符数组 -
ENCODE_64_TABLE
public static final byte[] ENCODE_64_TABLEbase64编码表 -
DECODE_64_TABLE
public static final byte[] DECODE_64_TABLEbase64解码表
-
-
Constructor Details
-
Normal
public Normal()
-
-
Method Details
-
isFileOrVfsURL
提供的URL是否为文件 文件协议包括"file", "vfsfile" 或 "vfs".- Parameters:
url-URL- Returns:
- 是否为文件
-
isFileURL
提供的URL是否为文件 文件协议包括"file".- Parameters:
url-URL- Returns:
- 是否为文件
-
isVfsURL
提供的URL是否为文件 文件协议包括"vfsfile" 或 "vfs".- Parameters:
url-URL- Returns:
- 是否为文件
-
isJarURL
提供的URL是否为jar包URL 协议包括: "jar", "zip", "vfszip" 或 "wsjar".- Parameters:
url-URL- Returns:
- 是否为jar包URL
-
isJarFileURL
提供的URL是否为Jar文件URL 判断依据为file协议且扩展名为.jar- Parameters:
url- the URL to check- Returns:
- whether the URL has been identified as a JAR file URL
-