public class PitchAndOctave<O extends Entity & Comparable<O>,C extends Entity & PitchIndication & Comparable<C>> extends Object implements PitchIndication, Comparable<PitchAndOctave<O,C>>
Modifier and Type | Field and Description |
---|---|
protected C |
classModOctave
The octave-relative coordinate (="pitch class" = "pitch mod octave") of this pitch.
|
protected O |
octave
The octave coordinate of this pitch.
|
Constructor and Description |
---|
PitchAndOctave(O octave,
C classModOctave)
Only constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(PitchAndOctave<O,C> other)
Evident
|
boolean |
equals(Object o) |
C |
get_classModOctave()
return the pitch class coordinate
|
O |
get_octave()
return the octave coordinate
|
String |
toString() |
String |
toString(String... langs)
Return text representation with the given language preferences.
|
static <OO extends Entity & Comparable<OO>,CC extends Entity & PitchIndication & Comparable<CC>> |
valueOf(OO octave,
CC classModOctave) |
protected O extends Entity & Comparable<O> octave
protected C extends Entity & PitchIndication & Comparable<C> classModOctave
public static <OO extends Entity & Comparable<OO>,CC extends Entity & PitchIndication & Comparable<CC>> PitchAndOctave valueOf(OO octave, CC classModOctave)
public int compareTo(PitchAndOctave<O,C> other)
compareTo
in interface Comparable<PitchAndOctave<O extends Entity & Comparable<O>,C extends Entity & PitchIndication & Comparable<C>>>
public O get_octave()
public C get_classModOctave()
public String toString(String... langs)