Enum IfExistsEnum

java.lang.Object
java.lang.Enum<IfExistsEnum>
com.github.yulichang.config.enums.IfExistsEnum
All Implemented Interfaces:
MPredicate<Object>, Serializable, Comparable<IfExistsEnum>, java.lang.constant.Constable, Predicate<Object>

public enum IfExistsEnum extends Enum<IfExistsEnum> implements MPredicate<Object>, Serializable
条件判断策略
Since:
1.4.9
Author:
yulichang
  • Enum Constant Details

    • NOT_NULL

      public static final IfExistsEnum NOT_NULL
      非null
    • NOT_EMPTY

      public static final IfExistsEnum NOT_EMPTY
      非空字符串 例: "" -> false, " " -> true ...
    • NOT_BLANK

      public static final IfExistsEnum NOT_BLANK
      NOT_BLANK 非空白字符串 例: "" -> false, " " -> false, "\r" -> false, "abc" -> true ...
  • Method Details

    • values

      public static IfExistsEnum[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static IfExistsEnum 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
    • test

      public boolean test(Object obj)
      Specified by:
      test in interface Predicate<Object>