Exemple #1
0
 protected double getMyCut(final Environmental affecting, final String currency) {
   final Map<String, Double> rates = getRatesFor(affecting, currency);
   if ((rates.size() > 0) && (rates.containsKey(currency.toUpperCase())))
     return rates.get(currency.toUpperCase()).doubleValue();
   return cut;
 }
Exemple #2
0
 protected boolean doIExchangeThisCurrency(final Environmental affecting, final String currency) {
   final Map<String, Double> rates = getRatesFor(affecting, currency);
   return ((rates.size() == 0) || (rates.containsKey(currency.toUpperCase())));
 }