Enum Sortables
- All Implemented Interfaces:
Serializable, Comparable<Sortables>, java.lang.constant.Constable, 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
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final Comparator<BugLeafNode> private final SortableStringComparator(package private) String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintformatValue(String value) String[]getAll()String[]String[]String[]getAllSorted(BugSet set) abstract StringgetFrom(BugInstance bug) static SortablesbooleanisAvailable(MainFrame frame) toString()static SortablesReturns the enum constant of this type with the specified name.static Sortables[]values()Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOfMethods inherited from interface Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Enum Constant Details
-
FIRSTVERSION
-
LASTVERSION
-
PRIORITY
-
CLASS
-
PACKAGE
-
PACKAGE_PREFIX
-
CATEGORY
-
BUGCODE
-
TYPE
-
BUG_RANK
-
PROJECT
-
DIVIDER
-
-
Field Details
-
prettyName
String prettyName -
comparator
-
bugLeafNodeComparator
-
-
Constructor Details
-
Sortables
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
toString
-
getFrom
-
getAll
-
getAll
-
formatValue
-
compare
- Specified by:
comparein interfaceComparator<String>
-
getAllSorted
-
getAllSorted
-
getComparator
-
getBugLeafNodeComparator
-
isAvailable
-
getSortableByPrettyName
-