Package com.foxinmy.weixin4j.mp.type
Enum AutomatchMode
- java.lang.Object
-
- java.lang.Enum<AutomatchMode>
-
- com.foxinmy.weixin4j.mp.type.AutomatchMode
-
- All Implemented Interfaces:
Serializable
,Comparable<AutomatchMode>
public enum AutomatchMode extends Enum<AutomatchMode>
自动匹配模式- Since:
- JDK 1.6
- Author:
- jinyu(foxinmy@gmail.com)
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AutomatchMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static AutomatchMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
contain
public static final AutomatchMode contain
代表消息中含有该关键词即可
-
equal
public static final AutomatchMode equal
表示消息内容必须和关键词严格相同
-
-
Method Detail
-
values
public static AutomatchMode[] 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 (AutomatchMode c : AutomatchMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AutomatchMode valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-