cdx
Class CallSign

java.lang.Object
  extended by cdx.CallSign

public class CallSign
extends java.lang.Object

The class CallSign encodes callsigns. They are used to identify aircrafts.


Constructor Summary
CallSign()
          The default construnctor.
CallSign(byte[] bytes)
          Constructor with an array of bytes
 
Method Summary
 boolean equals(java.lang.Object other)
          Performs an equality test between this object and another.
 byte[] get()
          Return the value of the callsign
 int hashCode()
          Returns a valid hash code for this object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CallSign

public CallSign(byte[] bytes)
Constructor with an array of bytes

Parameters:
bytes - the value of callsign

CallSign

public CallSign()
The default construnctor. The length of the build-in callsign is assigned.

Method Detail

get

public byte[] get()
Return the value of the callsign

Returns:
a callsign

hashCode

public int hashCode()
Returns a valid hash code for this object.

Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object other)
Performs an equality test between this object and another.

Overrides:
equals in class java.lang.Object
Parameters:
other -
Returns:
true if they are equal, otherwise false.