Enum Class ReflectiveConstraint.Result

java.lang.Object
java.lang.Enum<ReflectiveConstraint.Result>
com.cryptomorin.xseries.reflection.constraint.ReflectiveConstraint.Result
All Implemented Interfaces:
Serializable, Comparable<ReflectiveConstraint.Result>, Constable
Enclosing interface:
ReflectiveConstraint

public static enum ReflectiveConstraint.Result extends Enum<ReflectiveConstraint.Result>
  • Enum Constant Details

    • INCOMPATIBLE

      public static final ReflectiveConstraint.Result INCOMPATIBLE
      This constraint cannot be applied to the given JVM object al all.
    • NOT_MATCHED

      public static final ReflectiveConstraint.Result NOT_MATCHED
      The constraint is compatible with the given JVM object, however the JVM object did not meet the requirements for this constraint.
    • MATCHED

      public static final ReflectiveConstraint.Result MATCHED
      The constraint is compatible and matched with the given JVM object.
  • Method Details

    • values

      public static ReflectiveConstraint.Result[] 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 ReflectiveConstraint.Result 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
    • of

      @Internal public static ReflectiveConstraint.Result of(boolean test)
      Simple method that should only be used if this constraint is compatible (INCOMPATIBLE is not possible).