Enum Sorting

  • All Implemented Interfaces:
    Serializable, Comparable<Sorting>

    public enum Sorting
    extends Enum<Sorting>
    The type of sorting.
    Version:
    $Revision: 13700 $
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    • Enum Constant Detail

      • NO_SORTING

        public static final Sorting NO_SORTING
        no sorting.
      • SORT_BY_NAME

        public static final Sorting SORT_BY_NAME
        sort by name.
      • SORT_BY_LAST_MODIFIED

        public static final Sorting SORT_BY_LAST_MODIFIED
        sort by last mod.
    • Method Detail

      • values

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

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