Class ShipTypeDecoder


  • public final class ShipTypeDecoder
    extends java.lang.Object
    Decodes the ship type code as per 1371-4.pdf.
    Author:
    dxm
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getShipType​(java.lang.Integer ts)
      Returns the ship type for given integer.
      static java.lang.String getShipType​(java.math.BigInteger ts)
      Returns the ship type for given integer.
      static void main​(java.lang.String[] args)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getShipType

        public static java.lang.String getShipType​(java.math.BigInteger ts)
        Returns the ship type for given integer. If integer is null then returns null.
        Parameters:
        ts -
        Returns:
      • getShipType

        public static java.lang.String getShipType​(java.lang.Integer ts)
        Returns the ship type for given integer. If integer is null then returns null.
        Parameters:
        ts -
        Returns:
      • main

        public static void main​(java.lang.String[] args)