java.lang.Object
org.screamingsandals.simpleinventories.inventory.Price
All Implemented Interfaces:
Cloneable

public class Price extends Object implements Cloneable
  • Constructor Details

    • Price

      public Price()
  • Method Details

    • clone

      public Price clone()
      Overrides:
      clone in class Object
    • getAmount

      public int getAmount()
    • getCurrency

      public String getCurrency()
    • setAmount

      public void setAmount(int amount)
    • setCurrency

      public void setCurrency(String currency)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • of

      public static Price of(int amount, String currency)