SpeedM

com.malliina.measure.SpeedM
See theSpeedM companion object
final case class SpeedM(mps: Double) extends AnyVal, Ordered[SpeedM]

Value parameters

mps

meters per second

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Ordered[SpeedM]
trait Comparable[SpeedM]
class Object
class AnyVal
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def !=(other: SpeedM): Boolean
def +(other: SpeedM): SpeedM
def -(other: SpeedM): SpeedM
def ==(other: SpeedM): Boolean
override def compare(that: SpeedM): Int

Attributes

Definition Classes
Ordered
def formatKmh: String

Attributes

Returns

a string of format 'n units'

def formatKnots: String
def formatMs: String
def toKmh: Double
def toKnots: Double
def toMps: Double
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any

Inherited methods

def <(that: SpeedM): Boolean

Attributes

Inherited from:
Ordered
def <=(that: SpeedM): Boolean

Attributes

Inherited from:
Ordered
def >(that: SpeedM): Boolean

Attributes

Inherited from:
Ordered
def >=(that: SpeedM): Boolean

Attributes

Inherited from:
Ordered
def compareTo(that: SpeedM): Int

Attributes

Inherited from:
Ordered
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product