Package org.apache.shenyu.common.enums
Enum OperatorEnum
- java.lang.Object
-
- java.lang.Enum<OperatorEnum>
-
- org.apache.shenyu.common.enums.OperatorEnum
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<OperatorEnum>
public enum OperatorEnum extends java.lang.Enum<OperatorEnum>
OperatorEnum.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONTAINSContains operator enum.ENDS_WITHEnds with operator enum.EQEq operator enum.EXCLUDEExclude operator enum.GTGt operator enum.LTLt operator enum.MATCHMatch operator enum.PATH_PATTERNPath patter operator enum.REGEXRegex operator enum.STARTS_WITHStarts with operator enum.TIME_AFTERTime after operator enum.TIME_BEFORETime before operator enum.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.util.List<OperatorEnum>acquireSupport()acquire operator supports.java.lang.StringgetAlias()get alias.static OperatorEnumgetOperatorEnumByAlias(java.lang.String alias)get operator enum by alias.java.lang.BooleangetSupport()get support.static OperatorEnumvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static OperatorEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MATCH
public static final OperatorEnum MATCH
Match operator enum.
-
EQ
public static final OperatorEnum EQ
Eq operator enum.
-
REGEX
public static final OperatorEnum REGEX
Regex operator enum.
-
GT
public static final OperatorEnum GT
Gt operator enum.
-
LT
public static final OperatorEnum LT
Lt operator enum.
-
CONTAINS
public static final OperatorEnum CONTAINS
Contains operator enum.
-
STARTS_WITH
public static final OperatorEnum STARTS_WITH
Starts with operator enum.
-
ENDS_WITH
public static final OperatorEnum ENDS_WITH
Ends with operator enum.
-
TIME_BEFORE
public static final OperatorEnum TIME_BEFORE
Time before operator enum.
-
EXCLUDE
public static final OperatorEnum EXCLUDE
Exclude operator enum.
-
TIME_AFTER
public static final OperatorEnum TIME_AFTER
Time after operator enum.
-
PATH_PATTERN
public static final OperatorEnum PATH_PATTERN
Path patter operator enum.
-
-
Method Detail
-
values
public static OperatorEnum[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (OperatorEnum c : OperatorEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OperatorEnum valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getAlias
public java.lang.String getAlias()
get alias.- Returns:
- alias alias
-
getSupport
public java.lang.Boolean getSupport()
get support.- Returns:
- support support
-
acquireSupport
public static java.util.List<OperatorEnum> acquireSupport()
acquire operator supports.- Returns:
- operator support.
-
getOperatorEnumByAlias
public static OperatorEnum getOperatorEnumByAlias(java.lang.String alias)
get operator enum by alias.- Parameters:
alias- operator alias.- Returns:
- operator enum.
-
-