Quantity

public enum Quantity

Represents a quantity that can be bought/sold at a shop

Entries

FIFTY
Link copied to clipboard
FIFTY
TEN
Link copied to clipboard
TEN
FIVE
Link copied to clipboard
FIVE
ONE
Link copied to clipboard
ONE

Functions

getClosestAbove
Link copied to clipboard
static Optional<Shop.QuantitygetClosestAbove(int target)
Gets the closest Quantity whose numeric value is greater than or equal to the specified amount
getClosestBelow
Link copied to clipboard
static Optional<Shop.QuantitygetClosestBelow(int target)
Gets the closest Quantity whose numeric value is less than or equal to the specified amount
getQuantity
Link copied to clipboard
int getQuantity()
valueOf
Link copied to clipboard
static Shop.Quantity valueOf(String name)
values
Link copied to clipboard
static Array<Shop.Quantityvalues()

Properties

quantity
Link copied to clipboard
private final int quantity
The numeric value associated with this Quantity