au.gov.amsa.sgb.decoder.vesselid.AircraftOperatorAndSerialNumber Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sgb-decoder Show documentation
Show all versions of sgb-decoder Show documentation
Decodes second generation Beacon detection messages and Beacon 23 Hex IDs
The newest version!
package au.gov.amsa.sgb.decoder.vesselid;
public final class AircraftOperatorAndSerialNumber implements VesselId {
// used for serialization
private final VesselIdType vesselIdType = VesselIdType.AIRCRAFT_OPERATOR_AND_SERIAL_NUMBER;
private final String aircraftOperatorDesignator;
private final int serialNumber;
public AircraftOperatorAndSerialNumber(String aircraftOperatorDesignator, int serialNumber) {
this.aircraftOperatorDesignator = aircraftOperatorDesignator;
this.serialNumber = serialNumber;
}
@Override
public VesselIdType vesselIdType() {
return vesselIdType;
}
public String aircraftOperatorDesignator() {
return aircraftOperatorDesignator;
}
public int serialNumber() {
return serialNumber;
}
}