类 Angle9

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

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

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

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

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

    • Angle9

      public Angle9()
  • 方法详细资料

    • isCorrect

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

      public static boolean isAvailable(int value)
      Checks if the angular value is available, i.e. equals not the default value (511).
      参数:
      value - Angular value to check
      返回:
      true if available, otherwise false.
    • getTrueHeadingString

      public static String getTrueHeadingString(int value)
      Returns the String representation of given angular value.
      参数:
      value - Angular value to stringify
      返回:
      Angular value as String or "no heading" or "invalid heading"
    • toString

      public static String toString(int value)
      Returns the String representation of given angular value.
      参数:
      value - Angular value to stringify
      返回:
      Angular value as String or "not available" or "illegal value"