类 ManeuverIndicator
java.lang.Object
net.sf.marineapi.ais.util.ManeuverIndicator
Checks a 2-bit signed integer maneuver value for validity.
- 作者:
- Lázár József
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static booleanisAvailable(int value) Checks if the maneuver value is available.static booleanisCorrect(int value) Checks if the value is in the correct range.static StringtoString(int value) Rerturns the string representation of given int value.
-
字段详细资料
-
RANGE
Valid range with default value for "no value"- 另请参阅:
-
-
构造器详细资料
-
ManeuverIndicator
public ManeuverIndicator()
-
-
方法详细资料
-
isCorrect
public static boolean isCorrect(int value) Checks if the value is in the correct range.- 参数:
value- Int value to check- 返回:
- true if the value is correct
-
isAvailable
public static boolean isAvailable(int value) Checks if the maneuver value is available.- 参数:
value- Int value to check- 返回:
- true if the value is not the default value
-
toString
Rerturns the string representation of given int value.- 参数:
value- Value to stringify- 返回:
- a string representing the maneuvre indicator value
-