Class Value.DoubleValue

java.lang.Object
com.yahoo.data.access.simple.Value
com.yahoo.data.access.simple.Value.DoubleValue
All Implemented Interfaces:
Inspectable, Inspector
Enclosing class:
Value

public static class Value.DoubleValue extends Value
  • Constructor Details

    • DoubleValue

      public DoubleValue(double v)
  • Method Details

    • valid

      public boolean valid()
      Description copied from interface: Inspector
      Check if the inspector is valid. If you try to access a field or array entry that does not exist, you will get an invalid Inspector returned.
      Specified by:
      valid in interface Inspector
      Overrides:
      valid in class Value
    • type

      public Type type()
      Description copied from interface: Inspector
      Get the type of an inspector
      Specified by:
      type in interface Inspector
      Overrides:
      type in class Value
    • asDouble

      public double asDouble()
      Description copied from interface: Inspector
      Access the inspector's value if it's a DOUBLE (or LONG); otherwise throws exception
      Specified by:
      asDouble in interface Inspector
      Overrides:
      asDouble in class Value
    • asLong

      public long asLong()
      Description copied from interface: Inspector
      Access the inspector's value if it's a LONG (or DOUBLE); otherwise throws exception
      Specified by:
      asLong in interface Inspector
      Overrides:
      asLong in class Value
    • asDouble

      public double asDouble(double x)
      Description copied from interface: Inspector
      Get the inspector's value (or the supplied default), never throws
      Specified by:
      asDouble in interface Inspector
      Overrides:
      asDouble in class Value
    • asLong

      public long asLong(long x)
      Description copied from interface: Inspector
      Get the inspector's value (or the supplied default), never throws
      Specified by:
      asLong in interface Inspector
      Overrides:
      asLong in class Value