Package org.aoju.bus.core.toolkit
Enum Class UriKit.Type
- All Implemented Interfaces:
Serializable,Comparable<UriKit.Type>,Constable
- Enclosing class:
UriKit
枚举,用于标识每个URI组件允许的字符. 包含指示给定字符在特定URI组件中是否有效 .
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionabstract booleanisAllowed(int c) protected booleanisAlpha(int c) protected booleanisDigit(int c) protected booleanisGenericDelimiter(int c) protected booleanisPchar(int c) protected booleanisReserved(int c) protected booleanisSubDelimiter(int c) protected booleanisUnreserved(int c) static UriKit.TypeReturns the enum constant of this class with the specified name.static UriKit.Type[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SCHEME
-
AUTHORITY
-
USER_INFO
-
HOST_IPV4
-
HOST_IPV6
-
PORT
-
PATH
-
PATH_SEGMENT
-
QUERY
-
QUERY_PARAM
-
FRAGMENT
-
URI
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
isAllowed
public abstract boolean isAllowed(int c) -
isAlpha
protected boolean isAlpha(int c) -
isDigit
protected boolean isDigit(int c) -
isGenericDelimiter
protected boolean isGenericDelimiter(int c) -
isSubDelimiter
protected boolean isSubDelimiter(int c) -
isReserved
protected boolean isReserved(int c) -
isUnreserved
protected boolean isUnreserved(int c) -
isPchar
protected boolean isPchar(int c)
-