Quantity

final case class Quantity(n: PositiveNumber)

A quantity of something.

Example:

Quantity(-2) is not a valid quantity.

Quantity(20) is a valida quantity.

trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Inherited methods

def productElementNames: Iterator[String]
Inherited from:
Product
def productIterator: Iterator[Any]
Inherited from:
Product