Enum ESortOrder

    • Enum Constant Detail

      • ASCENDING

        public static final ESortOrder ASCENDING
      • DESCENDING

        public static final ESortOrder DESCENDING
    • Method Detail

      • values

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

        public static ESortOrder 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
      • getValue

        @Nonnegative
        public int getValue()
        Returns:
        The associated value for this sort order. The value can directly be used in compare methods to multiply the initial return value with this value to have the correct ordering.
      • isAscending

        public boolean isAscending()
        Specified by:
        isAscending in interface ISortOrderIndicator
        Returns:
        true is ascending sort order is active.
      • getAlternate

        @Nonnull
        public ESortOrder getAlternate()
        Get the alternate sort order. If the current sort order is ascending, the result will be descending and if this is descending, the return will be ascending.
        Returns:
        Never null.
      • getFromValueOrDefault

        @Nonnull
        public static ESortOrder getFromValueOrDefault​(int nValue)