类 Latitude27

java.lang.Object
net.sf.marineapi.ais.util.Latitude27

public class Latitude27 extends Object
Checks a 27-bit signed integer latitude value for validity.
作者:
Lázár József
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    static final String
    Valid range with default value for "no value"
  • 构造器概要

    构造器
    构造器
    说明
     
  • 方法概要

    修饰符和类型
    方法
    说明
    static boolean
    isAvailable(int value)
    Tells if the given latitude is available, i.e. within expected range.
    static boolean
    isCorrect(int value)
    Tells if the given value is correct, i.e. within expected range and not the no-value.
    static double
    toDegrees(int value)
    Converts the latitude value (in 1/10000 minutes) to degrees.
    static String
    toString(int value)
    Returns the String representation of given latitude value.

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 字段详细资料

    • RANGE

      public static final String RANGE
      Valid range with default value for "no value"
      另请参阅:
  • 构造器详细资料

    • Latitude27

      public Latitude27()
  • 方法详细资料

    • toDegrees

      public static double toDegrees(int value)
      Converts the latitude value (in 1/10000 minutes) to degrees.
      参数:
      value - Int value to convert
      返回:
      The latitude value in degrees
    • isAvailable

      public static boolean isAvailable(int value)
      Tells if the given latitude is available, i.e. within expected range.
      参数:
      value - Latitude value to validate
      返回:
      true if available, otherwise false.
    • isCorrect

      public static boolean isCorrect(int value)
      Tells if the given value is correct, i.e. within expected range and not the no-value.
      参数:
      value - Latitude value to validate
      返回:
      true if correct, otherwise false.
    • toString

      public static String toString(int value)
      Returns the String representation of given latitude value.
      参数:
      value - Value to stringify
      返回:
      "invalid latitude", "latitude not available" or value formatted in degrees.