com.foxinmy.weixin4j.mp.type
Enum AutomatchMode

java.lang.Object
  extended by java.lang.Enum<AutomatchMode>
      extended by 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)
See Also:

Enum Constant Summary
contain
          代表消息中含有该关键词即可
equal
          表示消息内容必须和关键词严格相同
 
Method Summary
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.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

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 name
NullPointerException - if the argument is null


Copyright © 2014–2017. All rights reserved.