Package au.gov.amsa.ais
Class ShipTypeDecoder
- java.lang.Object
-
- au.gov.amsa.ais.ShipTypeDecoder
-
public final class ShipTypeDecoder extends java.lang.ObjectDecodes 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.StringgetShipType(java.lang.Integer ts)Returns the ship type for given integer.static java.lang.StringgetShipType(java.math.BigInteger ts)Returns the ship type for given integer.static voidmain(java.lang.String[] args)
-
-
-
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)
-
-