returns the instance.

@return CurrencyDoubleRenderer
178605
public static final Parser<BigDecimal> instance() { // NOPMD it's thread save!
    if (BigDecimalParser.instanceParser == null) {
      synchronized (BigDecimalParser.class) {
        if (BigDecimalParser.instanceParser == null) {
          BigDecimalParser.instanceParser = new BigDecimalParser();
        }
      }
    }
    return BigDecimalParser.instanceParser;
  }
144051
public function getCurrencyCovIndex()
    {
        if ($this->_dConvIndex === null) {
            // currency conversion index value
            $oCur = \OxidEsales\Eshop\Core\Registry::getConfig()->getActShopCurrencyObject();
            $this->_dConvIndex = 1 / $oCur->rate;
        }

        return $this->_dConvIndex;
    }
1208497
public static Currency getInstance(Locale locale) {
        synchronized (localesToCurrencies) {
            if (locale == null) {
                throw new NullPointerException("locale == null");
            }
            Currency currency = localesToCurrencies.get(locale);
            if (currency != null) {
                return currency;
            }

            String currencyCode = ICU.getCurrencyCode(locale);
            if (currencyCode == null) {
                throw new IllegalArgumentException("Unsupported ISO 3166 country: " + locale);
            } else if (currencyCode.equals("XXX")) {
                return null;
            }
            Currency result = getInstance(currencyCode);
            localesToCurrencies.put(locale, result);
            return result;
        }
    }
923757
public static function getCurrencyCode()
	{
		if (!isset(self::$_currencyCode)) {
			$localeconv = localeconv();
			self::$_currencyCode = ($localeconv['currency_symbol'] != '')
				? $localeconv['currency_symbol'] : $localeconv['int_curr_symbol'];

			if (self::$_currencyCode == '') {
				// Default to $
				self::$_currencyCode = '$';
			}
		}
		return self::$_currencyCode;
	}
366041
public function create()
    {
        /**
         * @var Currency $currency
         */
        $classNamespace = $this->getEntityNamespace();
        $currency = new $classNamespace();
        $currency
            ->setEnabled(true)
            ->setCreatedAt($this->now());

        return $currency;
    }
336804
public function getPriceAlarmCurrency()
    {
        if ($this->_oCurrency == null) {
            $this->_oCurrency = false;
            $myConfig = \OxidEsales\Eshop\Core\Registry::getConfig();
            $oThisCurr = $myConfig->getCurrencyObject($this->oxpricealarm__oxcurrency->value);

            // #869A we should perform currency conversion
            // (older versions doesn't have currency info - assume as it is default - first in currency array)
            if (!$oThisCurr) {
                $oDefCurr = $myConfig->getActShopCurrencyObject();
                $oThisCurr = $myConfig->getCurrencyObject($oDefCurr->name);
                $this->oxpricealarm__oxcurrency->setValue($oDefCurr->name);
            }
            $this->_oCurrency = $oThisCurr;
        }

        return $this->_oCurrency;
    }
392785
public function getPrice()
    {
        return \Elcodi\Component\Currency\Entity\Money::create(
            $this->price,
            $this->priceCurrency
        );
    }
761728
public function getPriceCurrency()
    {
        if (empty($this->price_currency)) {
            throw new LogicException(
                sprintf(self::ERROR_MISSING_ATTRIBUTE_FORMAT, 'price_currency')
            );
        }
        return $this->price_currency;
    }
1172442
public function getCurrency()
    {
        $currency = Currency::getCurrencyInstance($this->getOrder()->source->id_currency);
        $result = array (
            Meta::Currency => $currency->iso_code,
            Meta::CurrencyRate => (float) $this->source->conversion_rate,
            Meta::CurrencyDoConvert => true,
        );
        return $result;
    }
477759
public static final KeyPressHandler getCurrencyKeyPressHandler() { // NOPMD it's thread save!
    if (HandlerFactory.currencyKeyPressHandler == null) {
      synchronized (CurrencyKeyPressHandler.class) {
        if (HandlerFactory.currencyKeyPressHandler == null) {
          HandlerFactory.currencyKeyPressHandler = new CurrencyKeyPressHandler();

        }
      }
    }
    return HandlerFactory.currencyKeyPressHandler;
  }
928590
public function getCurrency()
    {
        // @todo
        $result = array (
            Meta::Currency => $this->source->currency_code,
            Meta::CurrencyRate => (float) $this->source->conversion_rate,
            Meta::CurrencyDoConvert => true,
        );
        return $result;
    }
1348088
public function getBasketCurrency()
    {
        if ($this->_oCurrency === null) {
            $this->_oCurrency = \OxidEsales\Eshop\Core\Registry::getConfig()->getActShopCurrencyObject();
        }

        return $this->_oCurrency;
    }
614390
public function getShopCurrency()
    {
        if ((null === ($curr = $this->getRequestParameter('cur')))) {
            if (null === ($curr = $this->getRequestParameter('currency'))) {
                $curr = $this->getSession()->getVariable('currency');
            }
        }

        return (int) $curr;
    }
374943
public static function GetBaseCurrency()
    {
        static $oInstance = null;
        if (null === $oInstance) {
            $oInstance = TdbPkgShopCurrency::GetNewInstance();
            if (false === $oInstance->LoadFromField('is_base_currency', '1')) {
                $oInstance = false;
            }
        }

        return $oInstance;
    }
738725
public static Currency getInstance(ULocale locale) {
        String currency = locale.getKeywordValue("currency");
        if (currency != null) {
            return getInstance(currency);
        }

        if (shim == null) {
            return createCurrency(locale);
        }

        return shim.createInstance(locale);
    }
1119780
public static final Parser<BigDecimal> instance() { // NOPMD it's thread save!
    if (CurrencyBigDecimalParser.instanceParser == null) {
      synchronized (CurrencyBigDecimalParser.class) {
        if (CurrencyBigDecimalParser.instanceParser == null) {
          CurrencyBigDecimalParser.instanceParser = new CurrencyBigDecimalParser();
        }
      }
    }
    return CurrencyBigDecimalParser.instanceParser;
  }
1026573
public static function getInstance() {
        if (defined('ARTISAN_TASK_PID')) {
            $pid = @posix_getpid();
            if (!isset(self::$INSTANCE[ $pid ])) {
                self::$INSTANCE[ $pid ] = new self ();
            }

            return self::$INSTANCE[ $pid ];
        } else {
            if (self::$INSTANCE == null) {
                self::$INSTANCE = new self ();
            }

            return self::$INSTANCE;
        }
    }