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; }
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()))); }