Class MarketItem
java.lang.Object
us.teaminceptus.novaconomy.api.economy.market.MarketItem
- All Implemented Interfaces:
Comparable<MarketItem>
Represents an immutable custom Market Item on the Novaconomy Market
-
Constructor Summary
ConstructorsConstructorDescriptionMarketItem(@NotNull Material item, @NotNull MarketCategory category, double price) Constructs a new Market Item. -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(@NotNull MarketItem o) boolean@NotNull MarketCategoryGets the Market Category of this Market Item.@NotNull MaterialgetItem()Gets the Material of this Market Item.doublegetPrice()Gets the price of this Market Item.inthashCode()toString()
-
Constructor Details
-
MarketItem
public MarketItem(@NotNull @NotNull Material item, @NotNull @NotNull MarketCategory category, double price) Constructs a new Market Item.- Parameters:
item- Material of the Market Item to be soldcategory- Category of the Market Itemprice- Price of the Market Item
-
-
Method Details
-
getItem
Gets the Material of this Market Item.- Returns:
- Market Item Material
-
getCategory
Gets the Market Category of this Market Item.- Returns:
- Market Item Category
-
getPrice
public double getPrice()Gets the price of this Market Item.- Returns:
- Market Item Price
-
compareTo
- Specified by:
compareToin interfaceComparable<MarketItem>
-
equals
-
hashCode
public int hashCode() -
toString
-