|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcdx.Aircraft
public class Aircraft
The object of Aircraft where callsign is the only attribute
Constructor Summary | |
---|---|
Aircraft()
The default constructor. |
|
Aircraft(Aircraft _aircraft)
Constructor with an aircraft. |
|
Aircraft(byte[] _callsign)
Constructor with a callsign. |
Method Summary | |
---|---|
int |
compareTo(java.lang.Object _other)
Performs comparison with ordering taken into account. |
boolean |
equals(java.lang.Object other)
Performs a comparison between this object and another. |
byte[] |
getCallsign()
Return the callsign of the Aircraft. |
int |
hashCode()
Return a valid hash code for this object. |
java.lang.String |
toString()
Returns a helpful description of this object. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Aircraft()
public Aircraft(byte[] _callsign)
_callsign
- a callsign object
IllegalArgumentException()
- an exception is thrown if the length
of _callsign is different from the constant LENGTH_OF_CALLSIGN.public Aircraft(Aircraft _aircraft)
_aircraft
- Method Detail |
---|
public byte[] getCallsign()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
other
- the target object
public int compareTo(java.lang.Object _other) throws java.lang.ClassCastException
compareTo
in interface java.lang.Comparable
_other
- the target object
java.lang.ClassCastException
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |