Enum Sortables

java.lang.Object
java.lang.Enum<Sortables>
edu.umd.cs.findbugs.gui2.Sortables
All Implemented Interfaces:
Serializable, Comparable<Sortables>, java.lang.constant.Constable, Comparator<String>

public enum Sortables extends Enum<Sortables> implements Comparator<String>
A useful enum for dealing with all the types of filterable and sortable data in BugInstances This is the preferred way for getting the information out of a BugInstance and formatting it for display It also has the comparators for the different types of data
Author:
Reuven
  • Enum Constant Details

    • FIRST_SEEN

      public static final Sortables FIRST_SEEN
    • FIRSTVERSION

      public static final Sortables FIRSTVERSION
    • LASTVERSION

      public static final Sortables LASTVERSION
    • PRIORITY

      public static final Sortables PRIORITY
    • CLASS

      public static final Sortables CLASS
    • PACKAGE

      public static final Sortables PACKAGE
    • PACKAGE_PREFIX

      public static final Sortables PACKAGE_PREFIX
    • CATEGORY

      public static final Sortables CATEGORY
    • DESIGNATION

      public static final Sortables DESIGNATION
    • BUGCODE

      public static final Sortables BUGCODE
    • TYPE

      public static final Sortables TYPE
    • CONSENSUS

      public static final Sortables CONSENSUS
    • BUG_RANK

      public static final Sortables BUG_RANK
    • BUG_STATUS

      public static final Sortables BUG_STATUS
    • PROJECT

      public static final Sortables PROJECT
    • DIVIDER

      public static final Sortables DIVIDER
  • Method Details

    • values

      public static Sortables[] 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 Sortables 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
    • toString

      public String toString()
      Overrides:
      toString in class Enum<Sortables>
    • getFrom

      public abstract String getFrom(BugInstance bug)
    • getAll

      public String[] getAll()
    • getAll

      public String[] getAll(BugSet set)
    • formatValue

      public String formatValue(String value)
    • compare

      public int compare(String one, String two)
      Specified by:
      compare in interface Comparator<String>
    • getAllSorted

      public String[] getAllSorted()
    • getAllSorted

      public String[] getAllSorted(BugSet set)
    • getComparator

      public SortableStringComparator getComparator()
    • getBugLeafNodeComparator

      public Comparator<BugLeafNode> getBugLeafNodeComparator()
    • isAvailable

      public boolean isAvailable(MainFrame frame)
    • getSortableByPrettyName

      public static Sortables getSortableByPrettyName(String name)