getClosestBelow

static Optional<Shop.QuantitygetClosestBelow(int target)

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

Return

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

Parameters

target

the target value