Class OptionalValue

  • Direct Known Subclasses:
    OptionalDouble, OptionalInt

    public abstract class OptionalValue
    extends Object
    A container for a value that may be completely unsupported or may not be available at the time of request.
    • Constructor Detail

      • OptionalValue

        public OptionalValue()
    • Method Detail

      • isAvailable

        public abstract boolean isAvailable()
        Tells whether the value is currently available.

        Value may be completely unsupported depending on the drone model and/or firmware version, or may also be unavailable at the present time. In such cases, this method returns false

        Returns:
        true if the value is available, false otherwise