Class CsvFilterElement

    • Constructor Detail

      • CsvFilterElement

        CsvFilterElement​(String pattern)
        Constructs a CsvFilterElement from a CSV, Comma-Separated Values, string. Each value is an integer, or a range of integers. A range of integers is of the form integer-integer, such as 1-10. Note: integers must be non-negative.
        pattern - the CSV string.
        NumberFormatException - if a component substring does not contain a parsable integer.
    • Method Detail

      • addFilter

        private void addFilter​(IntFilterElement filter)
        Adds a IntFilterElement to the set.
        filter - the IntFilterElement to add.
      • accept

        public boolean accept​(int intValue)
        Determines whether an Integer matches a CSV integer value.
        Specified by:
        accept in interface IntFilterElement
        intValue - the Integer to check.
        true if intValue is an Integer that matches a CSV value.