DixShtix

com.dixshtix.midi
Class MidiNumber

java.lang.Object
  |
  +--java.lang.Number
        |
        +--com.dixshtix.midi.MidiNumber
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable
Direct Known Subclasses:
Beats, Channel, Command, Controller, EventType, Microseconds, Note, Patch, PitchWheel, Sequence, Song, Value, Velocity

public class MidiNumber
extends java.lang.Number
implements java.lang.Cloneable

Base Class for a lot of MIDI-specific integers, all unsigned.

Version:
0.1
Author:
Richard C. Penner II
See Also:
Serialized Form

Field Summary
(package private)  int number
          Thirty-two bits of storage is overkill, but worth it for fast creation.
 
Fields inherited from class java.lang.Number
serialVersionUID
 
Constructor Summary
MidiNumber(int num)
          Creator.
 
Method Summary
 byte byteValue()
          Secondary accessor method, rarely used.
 double doubleValue()
          Secondary accessor method, rarely used.
 boolean equals(java.lang.Object obj)
          One of the standard comparison functions.
 float floatValue()
          Secondary accessor method, rarely used.
 int hashCode()
          Secondary accessor method, rarely used.
 int intValue()
          Main accessor method.
 long longValue()
          Secondary accessor method, rarely used.
 short shortValue()
          Secondary accessor method, rarely used.
 java.lang.String toString()
          Default print routine.
 
Methods inherited from class java.lang.Object
, clone, finalize, getClass, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

number

int number
Thirty-two bits of storage is overkill, but worth it for fast creation.
Constructor Detail

MidiNumber

public MidiNumber(int num)
Creator.
Parameters:
num - the thirty-two bit representation.
Method Detail

intValue

public int intValue()
Main accessor method.
Overrides:
intValue in class java.lang.Number

longValue

public long longValue()
Secondary accessor method, rarely used.
Overrides:
longValue in class java.lang.Number

floatValue

public float floatValue()
Secondary accessor method, rarely used.
Overrides:
floatValue in class java.lang.Number

doubleValue

public double doubleValue()
Secondary accessor method, rarely used.
Overrides:
doubleValue in class java.lang.Number

byteValue

public byte byteValue()
Secondary accessor method, rarely used.
Overrides:
byteValue in class java.lang.Number

shortValue

public short shortValue()
Secondary accessor method, rarely used.
Overrides:
shortValue in class java.lang.Number

hashCode

public int hashCode()
Secondary accessor method, rarely used.
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
One of the standard comparison functions.
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Default print routine.
Overrides:
toString in class java.lang.Object

DixShtix