org.musicontroller.core
Class Instrument

java.lang.Object
  extended by org.musicontroller.core.LinkableAbs
      extended by org.musicontroller.core.Instrument
All Implemented Interfaces:
Linkable

public class Instrument
extends LinkableAbs


Constructor Summary
Instrument()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
          Two Instruments are the same if their names are equal (ignoring case).
 java.lang.String getType()
           
 int hashCode()
           
 java.lang.String toString()
          Returns a string representing the instrument that is suitable for human consumption.
 
Methods inherited from class org.musicontroller.core.LinkableAbs
getChanged, getId, getInserted, getName, normalizeName, setChanged, setId, setInserted, setName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Instrument

public Instrument()
Method Detail

equals

public boolean equals(java.lang.Object obj)
Two Instruments are the same if their names are equal (ignoring case). This means it is impossible to have two instruments with the same name but different parents.

Overrides:
equals in class java.lang.Object
Returns:
True if the instruments are equal, false otherwise.

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Returns a string representing the instrument that is suitable for human consumption.

Overrides:
toString in class java.lang.Object

getType

public java.lang.String getType()


Copyright © 2010 A.J.V.. All Rights Reserved.