java.lang.Object
com.olziedev.playerauctions.api.auction.product.AProduct<T>
Type Parameters:
T - The type of the product.

public class AProduct<T> extends Object
Represents a product that can be sold in an auction.
  • 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

      public Long getAmount()
      Returns:
      The amount of the product.
    • getFromSupplier

      public T getFromSupplier()
      Returns:
      The supplier of the product.
    • get

      public T get()
      Returns:
      The serializable product.
    • getSerializableProduct

      public ASerializableProduct<T> getSerializableProduct()
      Returns:
      The serializable product.