StockedQuantity

final case class StockedQuantity(quantity: NonNegativeNumber)

A quantity of a stocked product, it may also be zero.

Note:

it must be a non-negative number.

Example:

StockedQuantity(0) is valid.

StockedQuantity(-1) is invalid.

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