Enum SortType

  • All Implemented Interfaces:
    Serializable, Comparable<SortType>

    public enum SortType
    extends Enum<SortType>
    Represents the different ways an (internal) Assignment can be sorted
    Author:
    Steve Swinsburg (steve.swinsburg@gmail.com)
    • Enum Constant Detail

      • SORT_BY_NONE

        public static final SortType SORT_BY_NONE
      • SORT_BY_DATE

        public static final SortType SORT_BY_DATE
      • SORT_BY_NAME

        public static final SortType SORT_BY_NAME
      • SORT_BY_MEAN

        public static final SortType SORT_BY_MEAN
      • SORT_BY_POINTS

        public static final SortType SORT_BY_POINTS
      • SORT_BY_RELEASED

        public static final SortType SORT_BY_RELEASED
      • SORT_BY_COUNTED

        public static final SortType SORT_BY_COUNTED
      • SORT_BY_EDITOR

        public static final SortType SORT_BY_EDITOR
      • SORT_BY_CATEGORY

        public static final SortType SORT_BY_CATEGORY
      • SORT_BY_SORTING

        public static final SortType SORT_BY_SORTING
    • Method Detail

      • values

        public static SortType[] 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 (SortType c : SortType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static SortType 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