Enum Class Genre

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

public enum Genre extends Enum<Genre>
High-level musical genre.

  • Enum Constant Details

    • BALLROOM

      public static final Genre BALLROOM
    • BLUES

      public static final Genre BLUES
    • BOSSA

      public static final Genre BOSSA
    • CALYPSO

      public static final Genre CALYPSO
    • CHACHACHA

      public static final Genre CHACHACHA
    • CHORO

      public static final Genre CHORO
    • CLASSICAL

      public static final Genre CLASSICAL
    • COUNTRY

      public static final Genre COUNTRY
    • CUBAN

      public static final Genre CUBAN
    • DANCE

      public static final Genre DANCE
    • ELECTRONIC

      public static final Genre ELECTRONIC
    • FOLK

      public static final Genre FOLK
    • FORRO

      public static final Genre FORRO
    • FUNK

      public static final Genre FUNK
    • HIP_HOP

      public static final Genre HIP_HOP
    • MAMBO

      public static final Genre MAMBO
    • MERENGUE

      public static final Genre MERENGUE
    • METAL

      public static final Genre METAL
    • REGGAE

      public static final Genre REGGAE
    • RUMBA

      public static final Genre RUMBA
    • RnB

      public static final Genre RnB
    • SALSA

      public static final Genre SALSA
    • SAMBA

      public static final Genre SAMBA
    • SOUL

      public static final Genre SOUL
    • TANGO

      public static final Genre TANGO
    • UNKNOWN

      public static final Genre UNKNOWN
    • WORLD

      public static final Genre WORLD
    • LATIN

      public static final Genre LATIN
    • POP

      public static final Genre POP
    • ROCK

      public static final Genre ROCK
    • JAZZ

      public static final Genre JAZZ
  • Method Details

    • values

      public static Genre[] 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 Genre 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
    • getTags

      public String[] getTags()
    • guess

      public static Genre guess(String text)
      Try to guess the genre from a string.
      Parameters:
      text - eg "slowBossaNov.S726.prs"
      Returns:
      UNKNOWN if no matching found.
    • valueOf

      public static Genre valueOf(String s, Genre defaultValue)