Enum FilterItemComparator

java.lang.Object
java.lang.Enum<FilterItemComparator>
com.compomics.util.experiment.filtering.FilterItemComparator
All Implemented Interfaces:
Serializable, Comparable<FilterItemComparator>, java.lang.constant.Constable

public enum FilterItemComparator
extends Enum<FilterItemComparator>
Comparators for filter items.
Author:
Marc Vaudel
  • Enum Constant Details

  • Field Details

    • name

      public final String name
      The symbol to use.
    • description

      public final String description
      The description to use.
    • trueFalse

      public static final String[] trueFalse
      Array of possibilities used for a boolean value.
  • Method Details

    • values

      public static FilterItemComparator[] 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 FilterItemComparator 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
    • passes

      public boolean passes​(String threshold, double value)
      Indicates whether a given value passes a threshold using this comparator.
      Parameters:
      threshold - the threshold as string
      value - the value as string
      Returns:
      a boolean indicating whether a given value passes a threshold using this comparator
    • passes

      public boolean passes​(String threshold, String value)
      Indicates whether a given value passes a threshold using this comparator.
      Parameters:
      threshold - the threshold as string
      value - the value as string
      Returns:
      a boolean indicating whether a given value passes a threshold using this comparator
    • passes

      public boolean passes​(String threshold, Collection<String> values)
      Indicates whether a set of values passes a threshold using this comparator.
      Parameters:
      threshold - the threshold as string
      values - list of values
      Returns:
      a boolean indicating whether a given value passes a threshold using this comparator
    • passes

      public boolean passes​(String threshold, String[] values)
      Indicates whether a set of values passes a threshold using this comparator.
      Parameters:
      threshold - the threshold as string
      values - list of values
      Returns:
      a boolean indicating whether a given value passes a threshold using this comparator
    • passes

      public boolean passes​(String threshold, java.util.stream.Stream<String> values)
      Indicates whether a set of values passes a threshold using this comparator.
      Parameters:
      threshold - the threshold as string
      values - list of values
      Returns:
      a boolean indicating whether a given value passes a threshold using this comparator
    • toString

      public String toString()
      Overrides:
      toString in class Enum<FilterItemComparator>