au.gov.amsa.sgb.decoder.vesselid.Mmsi 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;
import java.util.Optional;
public final class Mmsi implements VesselId {
// used for serialization
private final VesselIdType vesselIdType = VesselIdType.MMSI;
private final Optional mmsi;
private final Optional epirbMmsi;
public Mmsi(Optional mmsi, Optional epirbMmsi) {
this.mmsi = mmsi;
this.epirbMmsi = epirbMmsi;
}
@Override
public VesselIdType vesselIdType() {
return vesselIdType;
}
public Optional mmsi() {
return mmsi;
}
public Optional epirbMmsi() {
return epirbMmsi;
}
}