Package com.configcat

Enum UserComparator

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<UserComparator>

    public enum UserComparator
    extends java.lang.Enum<UserComparator>
    User Object attribute comparison operator used during the evaluation process.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      CONTAINS_ANY_OF
      CONTAINS ANY OF (cleartext) - Checks whether the comparison attribute contains any comparison values as a substring.
      DATE_AFTER
      AFTER (UTC datetime) - Checks whether the comparison attribute interpreted as the seconds elapsed since Unix Epoch is greater than the comparison value.
      DATE_BEFORE
      BEFORE (UTC datetime) - Checks whether the comparison attribute interpreted as the seconds elapsed since Unix Epoch is less than the comparison value.
      HASHED_ARRAY_CONTAINS
      ARRAY CONTAINS ANY OF (hashed) - Checks whether the comparison attribute interpreted as a comma-separated list contains any of the comparison values (where the comparison is performed using the salted SHA256 hashes of the values).
      HASHED_ARRAY_NOT_CONTAINS
      ARRAY NOT CONTAINS ANY OF (hashed) - Checks whether the comparison attribute interpreted as a comma-separated list does not contain any of the comparison values (where the comparison is performed using the salted SHA256 hashes of the values).
      HASHED_ENDS_WITH
      ENDS WITH ANY OF (hashed) - Checks whether the comparison attribute ends with any of the comparison values (where the comparison is performed using the salted SHA256 hashes of the values).
      HASHED_EQUALS
      EQUALS (hashed) - Checks whether the comparison attribute is equal to the comparison value (where the comparison is performed using the salted SHA256 hashes of the values).
      HASHED_NOT_ENDS_WITH
      NOT ENDS WITH ANY OF (hashed) - Checks whether the comparison attribute does not end with any of the comparison values (where the comparison is performed using the salted SHA256 hashes of the values).
      HASHED_NOT_EQUALS
      NOT EQUALS (hashed) - Checks whether the comparison attribute is not equal to the comparison value (where the comparison is performed using the salted SHA256 hashes of the values).
      HASHED_NOT_STARTS_WITH
      NOT STARTS WITH ANY OF (hashed) - Checks whether the comparison attribute does not start with any of the comparison values (where the comparison is performed using the salted SHA256 hashes of the values).
      HASHED_STARTS_WITH
      STARTS WITH ANY OF (hashed) - Checks whether the comparison attribute starts with any of the comparison values (where the comparison is performed using the salted SHA256 hashes of the values).
      IS_NOT_ONE_OF
      IS NOT ONE OF (cleartext) - Checks whether the comparison attribute is not equal to any of the comparison values.
      IS_ONE_OF
      IS ONE OF (cleartext) - Checks whether the comparison attribute is equal to any of the comparison values.
      NOT_CONTAINS_ANY_OF
      NOT CONTAINS ANY OF (cleartext) - Checks whether the comparison attribute does not contain any comparison values as a substring.
      NUMBER_EQUALS
      = (number) - Checks whether the comparison attribute interpreted as a decimal number is equal to the comparison value.
      NUMBER_GREATER
      > (number) - Checks whether the comparison attribute interpreted as a decimal number is greater than the comparison value.
      NUMBER_GREATER_EQUALS
      >= (number) - Checks whether the comparison attribute interpreted as a decimal number is greater than or equal to the comparison value.
      NUMBER_LESS
      < (number) - Checks whether the comparison attribute interpreted as a decimal number is less than the comparison value.
      NUMBER_LESS_EQUALS
      <= (number) - Checks whether the comparison attribute interpreted as a decimal number is less than or equal to the comparison value.
      NUMBER_NOT_EQUALS
      != (number) - Checks whether the comparison attribute interpreted as a decimal number is not equal to the comparison value.
      SEMVER_GREATER
      > (semver) - Checks whether the comparison attribute interpreted as a semantic version is greater than the comparison value.
      SEMVER_GREATER_EQUALS
      >= (semver) - Checks whether the comparison attribute interpreted as a semantic version is greater than or equal to the comparison value.
      SEMVER_IS_NOT_ONE_OF
      IS NOT ONE OF (semver) - Checks whether the comparison attribute interpreted as a semantic version is not equal to any of the comparison values.
      SEMVER_IS_ONE_OF
      IS ONE OF (semver) - Checks whether the comparison attribute interpreted as a semantic version is equal to any of the comparison values.
      SEMVER_LESS
      < (semver) - Checks whether the comparison attribute interpreted as a semantic version is less than the comparison value.
      SEMVER_LESS_EQUALS
      <= (semver) - Checks whether the comparison attribute interpreted as a semantic version is less than or equal to the comparison value.
      SENSITIVE_IS_NOT_ONE_OF
      IS NOT ONE OF (hashed) - Checks whether the comparison attribute is not equal to any of the comparison values (where the comparison is performed using the salted SHA256 hashes of the values).
      SENSITIVE_IS_ONE_OF
      IS ONE OF (hashed) - Checks whether the comparison attribute is equal to any of the comparison values (where the comparison is performed using the salted SHA256 hashes of the values).
      TEXT_ARRAY_CONTAINS
      ARRAY CONTAINS ANY OF (cleartext) - Checks whether the comparison attribute interpreted as a comma-separated list contains any of the comparison values.
      TEXT_ARRAY_NOT_CONTAINS
      ARRAY NOT CONTAINS ANY OF (cleartext) - Checks whether the comparison attribute interpreted as a comma-separated list does not contain any of the comparison values.
      TEXT_ENDS_WITH
      ENDS WITH ANY OF (cleartext) - Checks whether the comparison attribute ends with any of the comparison values.
      TEXT_EQUALS
      EQUALS (cleartext) - Checks whether the comparison attribute is equal to the comparison value.
      TEXT_NOT_ENDS_WITH
      NOT ENDS WITH ANY OF (cleartext) - Checks whether the comparison attribute does not end with any of the comparison values.
      TEXT_NOT_EQUALS
      NOT EQUALS (cleartext) - Checks whether the comparison attribute is not equal to the comparison value.
      TEXT_NOT_STARTS_WITH
      NOT STARTS WITH ANY OF (cleartext) - Checks whether the comparison attribute does not start with any of the comparison values.
      TEXT_STARTS_WITH
      STARTS WITH ANY OF (cleartext) - Checks whether the comparison attribute starts with any of the comparison values.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static UserComparator fromId​(int id)  
      java.lang.String getName()  
      static UserComparator valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static UserComparator[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

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

      • IS_ONE_OF

        public static final UserComparator IS_ONE_OF
        IS ONE OF (cleartext) - Checks whether the comparison attribute is equal to any of the comparison values.
      • IS_NOT_ONE_OF

        public static final UserComparator IS_NOT_ONE_OF
        IS NOT ONE OF (cleartext) - Checks whether the comparison attribute is not equal to any of the comparison values.
      • CONTAINS_ANY_OF

        public static final UserComparator CONTAINS_ANY_OF
        CONTAINS ANY OF (cleartext) - Checks whether the comparison attribute contains any comparison values as a substring.
      • NOT_CONTAINS_ANY_OF

        public static final UserComparator NOT_CONTAINS_ANY_OF
        NOT CONTAINS ANY OF (cleartext) - Checks whether the comparison attribute does not contain any comparison values as a substring.
      • SEMVER_IS_ONE_OF

        public static final UserComparator SEMVER_IS_ONE_OF
        IS ONE OF (semver) - Checks whether the comparison attribute interpreted as a semantic version is equal to any of the comparison values.
      • SEMVER_IS_NOT_ONE_OF

        public static final UserComparator SEMVER_IS_NOT_ONE_OF
        IS NOT ONE OF (semver) - Checks whether the comparison attribute interpreted as a semantic version is not equal to any of the comparison values.
      • SEMVER_LESS

        public static final UserComparator SEMVER_LESS
        < (semver) - Checks whether the comparison attribute interpreted as a semantic version is less than the comparison value.
      • SEMVER_LESS_EQUALS

        public static final UserComparator SEMVER_LESS_EQUALS
        <= (semver) - Checks whether the comparison attribute interpreted as a semantic version is less than or equal to the comparison value.
      • SEMVER_GREATER

        public static final UserComparator SEMVER_GREATER
        > (semver) - Checks whether the comparison attribute interpreted as a semantic version is greater than the comparison value.
      • SEMVER_GREATER_EQUALS

        public static final UserComparator SEMVER_GREATER_EQUALS
        >= (semver) - Checks whether the comparison attribute interpreted as a semantic version is greater than or equal to the comparison value.
      • NUMBER_EQUALS

        public static final UserComparator NUMBER_EQUALS
        = (number) - Checks whether the comparison attribute interpreted as a decimal number is equal to the comparison value.
      • NUMBER_NOT_EQUALS

        public static final UserComparator NUMBER_NOT_EQUALS
        != (number) - Checks whether the comparison attribute interpreted as a decimal number is not equal to the comparison value.
      • NUMBER_LESS

        public static final UserComparator NUMBER_LESS
        < (number) - Checks whether the comparison attribute interpreted as a decimal number is less than the comparison value.
      • NUMBER_LESS_EQUALS

        public static final UserComparator NUMBER_LESS_EQUALS
        <= (number) - Checks whether the comparison attribute interpreted as a decimal number is less than or equal to the comparison value.
      • NUMBER_GREATER

        public static final UserComparator NUMBER_GREATER
        > (number) - Checks whether the comparison attribute interpreted as a decimal number is greater than the comparison value.
      • NUMBER_GREATER_EQUALS

        public static final UserComparator NUMBER_GREATER_EQUALS
        >= (number) - Checks whether the comparison attribute interpreted as a decimal number is greater than or equal to the comparison value.
      • SENSITIVE_IS_ONE_OF

        public static final UserComparator SENSITIVE_IS_ONE_OF
        IS ONE OF (hashed) - Checks whether the comparison attribute is equal to any of the comparison values (where the comparison is performed using the salted SHA256 hashes of the values).
      • SENSITIVE_IS_NOT_ONE_OF

        public static final UserComparator SENSITIVE_IS_NOT_ONE_OF
        IS NOT ONE OF (hashed) - Checks whether the comparison attribute is not equal to any of the comparison values (where the comparison is performed using the salted SHA256 hashes of the values).
      • DATE_BEFORE

        public static final UserComparator DATE_BEFORE
        BEFORE (UTC datetime) - Checks whether the comparison attribute interpreted as the seconds elapsed since Unix Epoch is less than the comparison value.
      • DATE_AFTER

        public static final UserComparator DATE_AFTER
        AFTER (UTC datetime) - Checks whether the comparison attribute interpreted as the seconds elapsed since Unix Epoch is greater than the comparison value.
      • HASHED_EQUALS

        public static final UserComparator HASHED_EQUALS
        EQUALS (hashed) - Checks whether the comparison attribute is equal to the comparison value (where the comparison is performed using the salted SHA256 hashes of the values).
      • HASHED_NOT_EQUALS

        public static final UserComparator HASHED_NOT_EQUALS
        NOT EQUALS (hashed) - Checks whether the comparison attribute is not equal to the comparison value (where the comparison is performed using the salted SHA256 hashes of the values).
      • HASHED_STARTS_WITH

        public static final UserComparator HASHED_STARTS_WITH
        STARTS WITH ANY OF (hashed) - Checks whether the comparison attribute starts with any of the comparison values (where the comparison is performed using the salted SHA256 hashes of the values).
      • HASHED_NOT_STARTS_WITH

        public static final UserComparator HASHED_NOT_STARTS_WITH
        NOT STARTS WITH ANY OF (hashed) - Checks whether the comparison attribute does not start with any of the comparison values (where the comparison is performed using the salted SHA256 hashes of the values).
      • HASHED_ENDS_WITH

        public static final UserComparator HASHED_ENDS_WITH
        ENDS WITH ANY OF (hashed) - Checks whether the comparison attribute ends with any of the comparison values (where the comparison is performed using the salted SHA256 hashes of the values).
      • HASHED_NOT_ENDS_WITH

        public static final UserComparator HASHED_NOT_ENDS_WITH
        NOT ENDS WITH ANY OF (hashed) - Checks whether the comparison attribute does not end with any of the comparison values (where the comparison is performed using the salted SHA256 hashes of the values).
      • HASHED_ARRAY_CONTAINS

        public static final UserComparator HASHED_ARRAY_CONTAINS
        ARRAY CONTAINS ANY OF (hashed) - Checks whether the comparison attribute interpreted as a comma-separated list contains any of the comparison values (where the comparison is performed using the salted SHA256 hashes of the values).
      • HASHED_ARRAY_NOT_CONTAINS

        public static final UserComparator HASHED_ARRAY_NOT_CONTAINS
        ARRAY NOT CONTAINS ANY OF (hashed) - Checks whether the comparison attribute interpreted as a comma-separated list does not contain any of the comparison values (where the comparison is performed using the salted SHA256 hashes of the values).
      • TEXT_EQUALS

        public static final UserComparator TEXT_EQUALS
        EQUALS (cleartext) - Checks whether the comparison attribute is equal to the comparison value.
      • TEXT_NOT_EQUALS

        public static final UserComparator TEXT_NOT_EQUALS
        NOT EQUALS (cleartext) - Checks whether the comparison attribute is not equal to the comparison value.
      • TEXT_STARTS_WITH

        public static final UserComparator TEXT_STARTS_WITH
        STARTS WITH ANY OF (cleartext) - Checks whether the comparison attribute starts with any of the comparison values.
      • TEXT_NOT_STARTS_WITH

        public static final UserComparator TEXT_NOT_STARTS_WITH
        NOT STARTS WITH ANY OF (cleartext) - Checks whether the comparison attribute does not start with any of the comparison values.
      • TEXT_ENDS_WITH

        public static final UserComparator TEXT_ENDS_WITH
        ENDS WITH ANY OF (cleartext) - Checks whether the comparison attribute ends with any of the comparison values.
      • TEXT_NOT_ENDS_WITH

        public static final UserComparator TEXT_NOT_ENDS_WITH
        NOT ENDS WITH ANY OF (cleartext) - Checks whether the comparison attribute does not end with any of the comparison values.
      • TEXT_ARRAY_CONTAINS

        public static final UserComparator TEXT_ARRAY_CONTAINS
        ARRAY CONTAINS ANY OF (cleartext) - Checks whether the comparison attribute interpreted as a comma-separated list contains any of the comparison values.
      • TEXT_ARRAY_NOT_CONTAINS

        public static final UserComparator TEXT_ARRAY_NOT_CONTAINS
        ARRAY NOT CONTAINS ANY OF (cleartext) - Checks whether the comparison attribute interpreted as a comma-separated list does not contain any of the comparison values.
    • Method Detail

      • values

        public static UserComparator[] 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 (UserComparator c : UserComparator.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static UserComparator valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getName

        public java.lang.String getName()