Class SimpleCurrencyContext

java.lang.Object
com.broadleafcommerce.money.SimpleCurrencyContext
All Implemented Interfaces:
CurrencyContext, Serializable

@Deprecated public final class SimpleCurrencyContext extends Object implements CurrencyContext
Deprecated.
Immutable holder of a CurrencyUnit. Most commonly used by the SystemCurrencyContextHolder
Author:
Phillip Verheyden (phillipuniverse)
See Also:
  • Constructor Details

    • SimpleCurrencyContext

      public SimpleCurrencyContext(javax.money.CurrencyUnit currency)
      Deprecated.
  • Method Details

    • getCurrency

      public javax.money.CurrencyUnit getCurrency()
      Deprecated.
      Description copied from interface: CurrencyContext
      Obtains the current currency associated with this execution
      Specified by:
      getCurrency in interface CurrencyContext
      Returns:
      the current currency or null if there is none specified
    • equals

      public boolean equals(Object o)
      Deprecated.
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object