|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dguitar.codecs.guitarPro.GPDuration
This class describes a duration read from a Guitar Pro file. Please note there is still an undocumented value used by this class.
valueOf(int)
Field Summary | |
private static GPDuration[] |
_durations
The durations. |
private static java.lang.String[] |
_durationsNames
The durations' names. |
private int |
_type
A duration is represented by an integer. |
static GPDuration |
EIGHTH
An eighth note. |
static GPDuration |
HALF
A half note. |
static GPDuration |
HUNDRED_TWENTY_EIGHTH
A hundred twenty-eighth note. |
static GPDuration |
QUARTER
A quarter note. |
static GPDuration |
SIXTEENTH
A sixteenth note. |
static GPDuration |
SIXTY_FOURTH
A sixty-fourth note. |
static GPDuration |
THIRTY_SECOND
A thirty-second note. |
static GPDuration |
UNKNOWN_DURATION
An undocumented duration. |
static GPDuration |
WHOLE
A whole note. |
Constructor Summary | |
private |
GPDuration(int type)
Creates a new Duration whose type is type . |
Method Summary | |
int |
compareTo(java.lang.Object obj)
Compares this duration to another object. |
boolean |
equals(java.lang.Object obj)
Returns true if the given object is equal to this. |
int |
getIndex()
Returns this duration's index. |
int |
getType()
Returns this duration's type. |
java.lang.String |
toString()
Returns a string representation of this Duration. |
static GPDuration |
valueOf(int type)
Returns the GPDuration associated with the value type . |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private int _type
public static final GPDuration WHOLE
public static final GPDuration HALF
public static final GPDuration QUARTER
public static final GPDuration EIGHTH
public static final GPDuration SIXTEENTH
public static final GPDuration THIRTY_SECOND
public static final GPDuration SIXTY_FOURTH
public static final GPDuration HUNDRED_TWENTY_EIGHTH
public static final GPDuration UNKNOWN_DURATION
private static GPDuration[] _durations
private static java.lang.String[] _durationsNames
Constructor Detail |
private GPDuration(int type)
type
.
type
- the duration value.Method Detail |
public int compareTo(java.lang.Object obj)
compareTo
in interface java.lang.Comparable
obj
- the object to compare this duration to.
Comparable.compareTo(Object)
public boolean equals(java.lang.Object obj)
Object.equals(java.lang.Object)
public int getIndex()
public int getType()
public java.lang.String toString()
public static GPDuration valueOf(int type)
type
.
type
- the duration integer value.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |