getClosestAbove

static Optional<Shop.QuantitygetClosestAbove(int target)

Gets the closest Quantity whose numeric value is greater than or equal to the specified amount

Return

the closest Quantity whose numeric value is greater than or equal to the specified amount, or an empty optional if none

Parameters

target

the target value