Enum Class ConditionOperator

java.lang.Object
java.lang.Enum<ConditionOperator>
com.ordwen.odailyquests.quests.conditions.ConditionOperator
All Implemented Interfaces:
Serializable, Comparable<ConditionOperator>, Constable

public enum ConditionOperator extends Enum<ConditionOperator>
Defines the types of conditions that can be applied when comparing a placeholder value against an expected value.

Condition types may represent simple string equality, numeric comparisons, or comparisons between durations expressed in a time format.

  • 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
    True if the placeholder value, interpreted as a string, contains the expected value as a substring.
    True if the placeholder value, interpreted as a duration, is strictly greater than the expected duration.
    True if the placeholder value, interpreted as a duration, is greater than or equal to the expected duration.
    True if the placeholder value, interpreted as a duration, is strictly less than the expected duration.
    True if the placeholder value, interpreted as a duration, is less than or equal to the expected duration.
    True if the placeholder value, interpreted as a string, ends with the expected value.
    True if the placeholder value is exactly equal to the expected value.
    True if the placeholder value, interpreted as a number, is strictly greater than the expected value.
    True if the placeholder value, interpreted as a number, is greater than or equal to the expected value.
    True if the placeholder value, interpreted as a number, is strictly less than the expected value.
    True if the placeholder value, interpreted as a number, is less than or equal to the expected value.
    True if the placeholder value, interpreted as a string, does not contain the expected value as a substring.
    True if the placeholder value is not equal to the expected value.
    True if the placeholder value, interpreted as a string, starts with the expected value.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the enum constant of this class with the specified name.
    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 ConditionOperator EQUALS
      True if the placeholder value is exactly equal to the expected value.
    • NOT_EQUALS

      public static final ConditionOperator NOT_EQUALS
      True if the placeholder value is not equal to the expected value.
    • CONTAINS

      public static final ConditionOperator CONTAINS
      True if the placeholder value, interpreted as a string, contains the expected value as a substring.
    • NOT_CONTAINS

      public static final ConditionOperator NOT_CONTAINS
      True if the placeholder value, interpreted as a string, does not contain the expected value as a substring.
    • STARTS_WITH

      public static final ConditionOperator STARTS_WITH
      True if the placeholder value, interpreted as a string, starts with the expected value.
    • ENDS_WITH

      public static final ConditionOperator ENDS_WITH
      True if the placeholder value, interpreted as a string, ends with the expected value.
    • GREATER_THAN

      public static final ConditionOperator GREATER_THAN
      True if the placeholder value, interpreted as a number, is strictly greater than the expected value.
    • LESS_THAN

      public static final ConditionOperator LESS_THAN
      True if the placeholder value, interpreted as a number, is strictly less than the expected value.
    • GREATER_THAN_OR_EQUALS

      public static final ConditionOperator GREATER_THAN_OR_EQUALS
      True if the placeholder value, interpreted as a number, is greater than or equal to the expected value.
    • LESS_THAN_OR_EQUALS

      public static final ConditionOperator LESS_THAN_OR_EQUALS
      True if the placeholder value, interpreted as a number, is less than or equal to the expected value.
    • DURATION_GREATER_THAN

      public static final ConditionOperator DURATION_GREATER_THAN
      True if the placeholder value, interpreted as a duration, is strictly greater than the expected duration.
    • DURATION_LESS_THAN

      public static final ConditionOperator DURATION_LESS_THAN
      True if the placeholder value, interpreted as a duration, is strictly less than the expected duration.
    • DURATION_GREATER_THAN_OR_EQUALS

      public static final ConditionOperator DURATION_GREATER_THAN_OR_EQUALS
      True if the placeholder value, interpreted as a duration, is greater than or equal to the expected duration.
    • DURATION_LESS_THAN_OR_EQUALS

      public static final ConditionOperator DURATION_LESS_THAN_OR_EQUALS
      True if the placeholder value, interpreted as a duration, is less than or equal to the expected duration.
  • Method Details

    • values

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