All Downloads are FREE. Search and download functionalities are using the official Maven repository.

au.gov.amsa.sgb.decoder.vesselid.Mmsi Maven / Gradle / Ivy

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;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy