dev.atedeg.mdm.products.utils

Type members

Classlikes

object given_Order_Grams extends Order[Grams]

Givens

Extensions

Extensions

extension (cheeseType: CheeseType)
def allowedWeights: NonEmptyList[Grams]

Returns a list of all the allowed weights in grams for a given cheese type.

Returns a list of all the allowed weights in grams for a given cheese type.

def withWeight(predicate: Int => Boolean): Option[Product]

Creates a product with the given cheese type if it can find a weight amongst the allowed ones that matches the given predicate.

Creates a product with the given cheese type if it can find a weight amongst the allowed ones that matches the given predicate.

extension (n: PositiveNumber)