类 Angle12

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

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

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

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

    修饰符和类型
    方法
    说明
    static boolean
    isAvailable(int value)
    Checks if the angular value is available.
    static boolean
    isCorrect(int value)
    Tells if the angular value is correct, i.e. within the range 0..3599 or the default value 3600.
    static double
    toDegrees(int value)
    Converts the angular value to degrees.
    static String
    toString(int value)
    Returns the String representation of given angular 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"
      另请参阅:
  • 构造器详细资料

    • Angle12

      public Angle12()
  • 方法详细资料

    • isCorrect

      public static boolean isCorrect(int value)
      Tells if the angular value is correct, i.e. within the range 0..3599 or the default value 3600.
      参数:
      value - Angular value to validate.
      返回:
      true if correct, otherwise false.
    • isAvailable

      public static boolean isAvailable(int value)
      Checks if the angular value is available.
      参数:
      value - Angular value to check.
      返回:
      true if the angular is not the default value (3600)
    • toDegrees

      public static double toDegrees(int value)
      Converts the angular value to degrees.
      参数:
      value - Angular value to convert, in 1/10 degrees.
      返回:
      The angular value in degrees.
    • toString

      public static String toString(int value)
      Returns the String representation of given angular value.
      参数:
      value - Angular value to convert to String.
      返回:
      a string representing the angular value