org.niffty
Class Accidental.Shape

java.lang.Object
  |
  +--org.niffty.Accidental.Shape
Enclosing class:
Accidental

public static final class Accidental.Shape
extends java.lang.Object

An Accidental.Shape has constants for the legal shapes. This is a "typesafe enum" where you can use a static members like a constant and compare with == .


Field Summary
static Accidental.Shape DOUBLE_FLAT
           
static Accidental.Shape DOUBLE_SHARP
           
static Accidental.Shape FLAT
           
static Accidental.Shape NATURAL
           
static Accidental.Shape QUARTER_TONE_FLAT
           
static Accidental.Shape QUARTER_TONE_SHARP
           
static Accidental.Shape SHARP
           
static Accidental.Shape THREE_QUARTER_TONES_FLAT
           
static Accidental.Shape THREE_QUARTER_TONES_SHARP
           
 
Method Summary
 java.lang.String toString()
          Return a string representation of this constant.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DOUBLE_FLAT

public static final Accidental.Shape DOUBLE_FLAT

FLAT

public static final Accidental.Shape FLAT

NATURAL

public static final Accidental.Shape NATURAL

SHARP

public static final Accidental.Shape SHARP

DOUBLE_SHARP

public static final Accidental.Shape DOUBLE_SHARP

QUARTER_TONE_FLAT

public static final Accidental.Shape QUARTER_TONE_FLAT

THREE_QUARTER_TONES_FLAT

public static final Accidental.Shape THREE_QUARTER_TONES_FLAT

QUARTER_TONE_SHARP

public static final Accidental.Shape QUARTER_TONE_SHARP

THREE_QUARTER_TONES_SHARP

public static final Accidental.Shape THREE_QUARTER_TONES_SHARP
Method Detail

toString

public java.lang.String toString()
Return a string representation of this constant. This is only for display and is not used in testing for equality.

Overrides:
toString in class java.lang.Object