Enum Class Division

java.lang.Object
java.lang.Enum<Division>
org.jjazz.rhythm.api.Division
All Implemented Interfaces:
Serializable, Comparable<Division>, Constable

public enum Division extends Enum<Division>
The rhythm main division.
  • Enum Constant Details

    • BINARY

      public static final Division BINARY
    • EIGHTH_SHUFFLE

      public static final Division EIGHTH_SHUFFLE
      jazz swing with triplet division
    • EIGHTH_TRIPLET

      public static final Division EIGHTH_TRIPLET
      Similar to 12/8 signature.
    • UNKNOWN

      public static final Division UNKNOWN
  • Method Details

    • values

      public static Division[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Division valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • isBinary

      public boolean isBinary()
      True if BINARY.
      Returns:
    • isTernary

      public boolean isTernary()
      True if EIGHTH_SHUFFLE or EIGHTH_TRIPLET.
      Returns:
    • isSwing

      public boolean isSwing()
      True if EIGHTH_SHUFFLE.
      Returns:
    • valueOf

      public static Division valueOf(String s, Division defaultValue)
    • guess

      public static Division guess(Genre genre, String text, int tempo)
      Try to guess the division type from the specified parameters.
      Parameters:
      genre - If null return UNKNOWN
      text - Ignored if null
      tempo - Ignored if negative value
      Returns:
      UNKNOWN if no matching found.