Packages

trait Length extends Ordered[Length]

A quantity or measurement of length. The final classes include Metres, KMetres. The purpose of the separate classes is for displaying values. 100M and 0.1KMetres have the same value but will be displayed differently.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Length
  2. Ordered
  3. Comparable
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def *(operand: Double): Length

    Multiplies this length by the operand scalar Double.

    Multiplies this length by the operand scalar Double. The return type will be narrowed to the final class's class in the implementing class.

  2. abstract def +(operand: Length): Length

    Adds the operand length to this length.

    Adds the operand length to this length. The return type will be narrowed to the dispatching object's type in the final implementing class.

  3. abstract def -(operand: Length): Length

    Subtracts the operand length from this length.

    Subtracts the operand length from this length. The return type will be narrowed to the dispatching object's type in the final implementing class.

  4. abstract def /(operand: Double): Length

    Divides this length by the operand scalar Double.

    Divides this length by the operand scalar Double. The return type will be narrowed to the final class's class in the implementing class.

  5. abstract def compare(that: Length): Int
    Definition Classes
    Ordered
  6. abstract def gMetresNum: Double

    The scalar Double value of this length expressed in gigametres or millions of kilometres.

  7. abstract def getClass(): Class[_ <: AnyRef]
    Definition Classes
    Any
  8. abstract def kMetresNum: Double

    The scalar Double value of this length expressed in kilometres.

  9. abstract def mMetresNum: Double

    The scalar Double value of this length expressed in megametres.

  10. abstract def mMilesNum: Double

    The scalar Double value of this length expressed in millions of miles.

  11. abstract def max(operand: Length): Length

    Returns the max Length of this and the operand value.

    Returns the max Length of this and the operand value. The return type will be narrowed to the final class's class in the implementing class.

  12. abstract def metresNum: Double

    The scalar Double value of this length expressed in metres.

  13. abstract def milesNum: Double

    The scalar Double value of this length expressed in miles.

  14. abstract def unary_-: Length

    Negates this length.

    Negates this length. The return type will be narrowed to the final class's class in the implementing class.

  15. abstract def yardsNum: Double

    The scalar Double value of this length expressed in miles.

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##: Int
    Definition Classes
    Any
  3. def <(that: Length): Boolean
    Definition Classes
    Ordered
  4. def <=(that: Length): Boolean
    Definition Classes
    Ordered
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  6. def >(that: Length): Boolean
    Definition Classes
    Ordered
  7. def >=(that: Length): Boolean
    Definition Classes
    Ordered
  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. def compareTo(that: Length): Int
    Definition Classes
    Ordered → Comparable
  10. def equals(arg0: Any): Boolean
    Definition Classes
    Any
  11. final def gMetres: GMetres

    The value of this length expressed as GMetres gigametres or millions of kilometres.

    The value of this length expressed as GMetres gigametres or millions of kilometres.

    Annotations
    @inline()
  12. def hashCode(): Int
    Definition Classes
    Any
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. final def kMetres: KMetres

    The value of this length expressed as KMetres.

    The value of this length expressed as KMetres.

    Annotations
    @inline()
  15. final def mMetres: MMetres

    The value of this length expressed as MMetres megametres or thousands of kilometres.

    The value of this length expressed as MMetres megametres or thousands of kilometres.

    Annotations
    @inline()
  16. final def mMmiles: MMiles

    The value of this length expressed as Miles.

    The value of this length expressed as Miles.

    Annotations
    @inline()
  17. final def metres: Metres

    The value of this length expressed as Metres.

    The value of this length expressed as Metres.

    Annotations
    @inline()
  18. final def miles: Miles

    The value of this length expressed as Miles.

    The value of this length expressed as Miles.

    Annotations
    @inline()
  19. def toString(): String
    Definition Classes
    Any
  20. final def yards: Yards

    The value of this length expressed as Miles.

    The value of this length expressed as Miles.

    Annotations
    @inline()

Inherited from Ordered[Length]

Inherited from Comparable[Length]

Inherited from Any

Ungrouped