Class AProduct<T>
java.lang.Object
com.olziedev.playerauctions.api.auction.product.AProduct<T>
- Type Parameters:
T
- The type of the product.
Represents a product that can be sold in an auction.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
AProduct
public AProduct(Long amount, T t, long naturalAmount, long maxAmount, Supplier<T> supplier, ASerializableProduct<T> serializableProduct) - Parameters:
amount
- The amount of the product.t
- The amount of the product.maxAmount
- The maximum amount of the product.supplier
- The supplier of the product.serializableProduct
- The serializable product.
-
-
Method Details
-
getAmount
- Returns:
- The amount of the product.
-
getFromSupplier
- Returns:
- The supplier of the product.
-
get
- Returns:
- The serializable product.
-
getSerializableProduct
- Returns:
- The serializable product.
-