Interface Scalar<U extends Unit<U>,​S extends Scalar<U,​S>>

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      boolean eq​(S o)
      Test if this DoubleScalar is equal to a DoubleScalar.
      boolean eq0()
      Test if this DoubleScalar is equal to 0.0.
      default String format​(double d)
      Format a string according to the current locale and the standard (minimized) format, such as "3.14" or "300.0".
      default String format​(double d, String format)
      Format a string according to the current locale and the provided format string.
      boolean ge​(S o)
      Test if this DoubleScalar is greater than a DoubleScalar.
      boolean ge0()
      Test if this DoubleScalar is greater than 0.0.
      boolean gt​(S o)
      Test if this DoubleScalar is greater than or equal to a DoubleScalar.
      boolean gt0()
      Test if this DoubleScalar is greater than or equal to 0.0.
      boolean le​(S o)
      Test if this DoubleScalar is less than or equal to another DoubleScalar.
      boolean le0()
      Test if this DoubleScalar is less than or equal to 0.0.
      boolean lt​(S o)
      Test if this DoubleScalar is less than another DoubleScalar.
      boolean lt0()
      Test if this DoubleScalar is less than 0.0.
      boolean ne​(S o)
      Test if this DoubleScalar is not equal to a DoubleScalar.
      boolean ne0()
      Test if this DoubleScalar is not equal to 0.0.
      String toDisplayString()
      Concise display description of this value, without the engineering formatting, so without trailing zeroes.
      String toDisplayString​(U displayUnit)
      Concise display description of this value, without the engineering formatting, so without trailing zeroes.
      String toTextualString()
      Concise textual representation of this value, without the engineering formatting, so without trailing zeroes.
      String toTextualString​(U displayUnit)
      Concise textual representation of this value, without the engineering formatting, so without trailing zeroes.
    • Method Detail

      • lt

        boolean lt​(S o)
        Test if this DoubleScalar is less than another DoubleScalar.
        Parameters:
        o - T, a relative typed DoubleScalar; the right hand side operand of the comparison
        Returns:
        boolean; true if this is less than other; false if this is not less than other
      • le

        boolean le​(S o)
        Test if this DoubleScalar is less than or equal to another DoubleScalar.
        Parameters:
        o - T, a relative typed DoubleScalar; the right hand side operand of the comparison
        Returns:
        boolean
      • gt

        boolean gt​(S o)
        Test if this DoubleScalar is greater than or equal to a DoubleScalar.
        Parameters:
        o - T, a relative typed DoubleScalar; the right hand side operand of the comparison
        Returns:
        boolean; true if this is greater than or equal to other; false if this is not greater than or equal to other
      • ge

        boolean ge​(S o)
        Test if this DoubleScalar is greater than a DoubleScalar.
        Parameters:
        o - T, a relative typed DoubleScalar; the right hand side operand of the comparison
        Returns:
        boolean; true if this is greater than other; false if this is not greater than other
      • eq

        boolean eq​(S o)
        Test if this DoubleScalar is equal to a DoubleScalar.
        Parameters:
        o - T, a relative typed DoubleScalar; the right hand side operand of the comparison
        Returns:
        boolean; true if this is equal to other; false if this is not equal to other
      • ne

        boolean ne​(S o)
        Test if this DoubleScalar is not equal to a DoubleScalar.
        Parameters:
        o - T, a relative typed DoubleScalar; the right hand side operand of the comparison
        Returns:
        boolean; true if this is not equal to other; false if this is equal to other
      • lt0

        boolean lt0()
        Test if this DoubleScalar is less than 0.0.
        Returns:
        boolean; true if this is less than 0.0; false if this is not less than 0.0
      • le0

        boolean le0()
        Test if this DoubleScalar is less than or equal to 0.0.
        Returns:
        boolean; true if this is less than or equal to 0.0; false if this is not less than or equal to 0.0
      • gt0

        boolean gt0()
        Test if this DoubleScalar is greater than or equal to 0.0.
        Returns:
        boolean; true if this is greater than or equal to 0.0; false if this is not greater than or equal to 0.0
      • ge0

        boolean ge0()
        Test if this DoubleScalar is greater than 0.0.
        Returns:
        boolean; true if this is greater than 0.0; false if this is not greater than 0.0
      • eq0

        boolean eq0()
        Test if this DoubleScalar is equal to 0.0.
        Returns:
        boolean; true if this is equal to 0.0; false if this is not equal to 0.0
      • ne0

        boolean ne0()
        Test if this DoubleScalar is not equal to 0.0.
        Returns:
        boolean; true if this is not equal to 0.0; false if this is equal to 0.0
      • toTextualString

        String toTextualString()
        Concise textual representation of this value, without the engineering formatting, so without trailing zeroes. A space is added between the number and the unit.
        Returns:
        a String with the value with the default textual representation of the unit attached.
      • toTextualString

        String toTextualString​(U displayUnit)
        Concise textual representation of this value, without the engineering formatting, so without trailing zeroes. A space is added between the number and the unit.
        Parameters:
        displayUnit - U; the display unit for the value
        Returns:
        a String with the value with the default textual representation of the provided unit attached.
      • toDisplayString

        String toDisplayString()
        Concise display description of this value, without the engineering formatting, so without trailing zeroes. A space is added between the number and the unit.
        Returns:
        a String with the value with the default display representation of the unit attached.
      • toDisplayString

        String toDisplayString​(U displayUnit)
        Concise display description of this value, without the engineering formatting, so without trailing zeroes. A space is added between the number and the unit.
        Parameters:
        displayUnit - U; the display unit for the value
        Returns:
        a String with the value with the default display representation of the provided unit attached.
      • format

        default String format​(double d)
        Format a string according to the current locale and the standard (minimized) format, such as "3.14" or "300.0".
        Parameters:
        d - double; the number to format
        Returns:
        String; the formatted number using the current Locale
      • format

        default String format​(double d,
                              String format)
        Format a string according to the current locale and the provided format string.
        Parameters:
        d - double; the number to format
        format - String; the formatting string to use for the number
        Returns:
        String; the formatted number using the current Locale and the format string