Enum FilterOperator

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

    public enum FilterOperator
    extends java.lang.Enum<FilterOperator>
    Author:
    Scott Hernandez
    • Method Detail

      • values

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

        public static FilterOperator 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
      • fromString

        public static FilterOperator fromString​(java.lang.String operator)
        Creates a FilterOperator from a String
        Parameters:
        operator - the String to convert
        Returns:
        the FilterOperator
      • matches

        public boolean matches​(java.lang.String filter)
        Returns true if the given filter matches the filters on this FilterOperator
        Parameters:
        filter - the filter to check
        Returns:
        true if the given filter matches the filters on this FilterOperator
      • val

        public java.lang.String val()
        Returns:
        the value of this FilterOperator