edu.umd.cs.findbugs.gui2
Enum Sortables
java.lang.Object
java.lang.Enum<Sortables>
edu.umd.cs.findbugs.gui2.Sortables
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<Sortables>, java.util.Comparator<edu.umd.cs.findbugs.gui2.BugAspects.SortableValue>
public enum Sortables
- extends java.lang.Enum<Sortables>
- implements java.util.Comparator<edu.umd.cs.findbugs.gui2.BugAspects.SortableValue>
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
Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
equals, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Comparator |
equals |
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
BUG_RANK
public static final Sortables BUG_RANK
PROJECT
public static final Sortables PROJECT
DIVIDER
public static final Sortables DIVIDER
values
public static Sortables[] 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 (Sortables c : Sortables.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Sortables 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
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Enum<Sortables>
getFrom
public abstract java.lang.String getFrom(BugInstance bug)
getAll
public java.lang.String[] getAll()
getAll
public java.lang.String[] getAll(BugSet set)
formatValue
public java.lang.String formatValue(java.lang.String value)
compare
public int compare(edu.umd.cs.findbugs.gui2.BugAspects.SortableValue one,
edu.umd.cs.findbugs.gui2.BugAspects.SortableValue two)
- Specified by:
compare
in interface java.util.Comparator<edu.umd.cs.findbugs.gui2.BugAspects.SortableValue>
getAllSorted
public java.lang.String[] getAllSorted()
getAllSorted
public java.lang.String[] getAllSorted(BugSet set)
getComparator
public SortableStringComparator getComparator()
getBugLeafNodeComparator
public java.util.Comparator<BugLeafNode> getBugLeafNodeComparator()
isAvailable
public boolean isAvailable(MainFrame frame)
getSortableByPrettyName
public static Sortables getSortableByPrettyName(java.lang.String name)
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.