Enum Progress.Spinner

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<Progress.Spinner>
    Enclosing class:
    Progress

    public static enum Progress.Spinner
    extends java.lang.Enum<Progress.Spinner>
    Which spinner to show. Some may require extended unicode font to be used in the console without just showing '?'.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      ARROWS
      A spinning arrow.
      ASCII
      Simple ASCII spinner using '|', '/', '-', '\'.
      BLOCKS
      Using a block char that bounces up and down to show progress.
      CLOCK
      Use Unicode clock symbols, 0x1f550 -> 0x1f55b:
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Progress.Spinner valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static Progress.Spinner[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • ASCII

        public static final Progress.Spinner ASCII
        Simple ASCII spinner using '|', '/', '-', '\'. This variant will work in any terminal.
      • BLOCKS

        public static final Progress.Spinner BLOCKS
        Using a block char that bounces up and down to show progress. Not exactly spinning, but does the job. Using unicode chars 0x2581 -> 0x2588;

        '▁', '▂', '▃', '▄', '▅', '▆', '▇', '█'

      • ARROWS

        public static final Progress.Spinner ARROWS
        A spinning arrow. Using chars in range 0x2b60 -> 0x2b69:

        '⭢', '⭨', '⭣', '⭩', '⭠', '⭦', '⭡', '⭧'

      • CLOCK

        public static final Progress.Spinner CLOCK
        Use Unicode clock symbols, 0x1f550 -> 0x1f55b:

        '🕐', '🕑', '🕒', '🕓', '🕔', '🕕', '🕖', '🕗', '🕘', '🕙', '🕚', '🕛'

    • Method Detail

      • values

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

        public static Progress.Spinner 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