Enum Class StringMatch

java.lang.Object
java.lang.Enum<StringMatch>
sfs3.client.entities.match.StringMatch
All Implemented Interfaces:
Serializable, Comparable<StringMatch>, Constable, IMatcher

public enum StringMatch extends Enum<StringMatch> implements IMatcher
The StringMatch class is used in matching expressions to check string conditions.
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    An instance of StringMatch representing the following condition: string1.indexOf(string2) !
    An instance of StringMatch representing the following condition: string1 ends with characters contained in string2.
    An instance of StringMatch representing the following condition: string1 == string2.
    An instance of StringMatch representing the following condition: string1 !
    An instance of StringMatch representing the following condition: string1 starts with characters contained in string2.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the condition symbol of this matcher.
    int
    Returns the type id of this matcher.
    Returns the enum constant of this class with the specified name.
    static StringMatch[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • EQUALS

      public static final StringMatch EQUALS
      An instance of StringMatch representing the following condition: string1 == string2.
    • NOT_EQUALS

      public static final StringMatch NOT_EQUALS
      An instance of StringMatch representing the following condition: string1 != string2.
    • CONTAINS

      public static final StringMatch CONTAINS
      An instance of StringMatch representing the following condition: string1.indexOf(string2) != -1.
    • STARTS_WITH

      public static final StringMatch STARTS_WITH
      An instance of StringMatch representing the following condition: string1 starts with characters contained in string2.
    • ENDS_WITH

      public static final StringMatch ENDS_WITH
      An instance of StringMatch representing the following condition: string1 ends with characters contained in string2.
  • Method Details

    • values

      public static StringMatch[] 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

      public static StringMatch valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getSymbol

      public String getSymbol()
      Description copied from interface: IMatcher
      Returns the condition symbol of this matcher.
      Specified by:
      getSymbol in interface IMatcher
    • getType

      public int getType()
      Description copied from interface: IMatcher
      Returns the type id of this matcher.
      Specified by:
      getType in interface IMatcher