@Singleton public class BasePricingService extends Object implements PricingService
Modifier and Type | Field and Description |
---|---|
protected RestContext<AbiquoApi,AbiquoAsyncApi> |
context |
protected ListCurrencies |
listCurrencies |
Modifier | Constructor and Description |
---|---|
protected |
BasePricingService(RestContext<AbiquoApi,AbiquoAsyncApi> context,
ListCurrencies listCurrencies) |
Modifier and Type | Method and Description |
---|---|
Currency |
findCurrency(com.google.common.base.Predicate<Currency> filter)
Get the first currencies that matches the given filter or
null if none is found. |
Iterable<Currency> |
listCurrencies()
Currency **********************
|
Iterable<Currency> |
listCurrencies(com.google.common.base.Predicate<Currency> filter)
Get the list of currencies matching the given filter.
|
protected RestContext<AbiquoApi,AbiquoAsyncApi> context
protected final ListCurrencies listCurrencies
@Inject protected BasePricingService(RestContext<AbiquoApi,AbiquoAsyncApi> context, ListCurrencies listCurrencies)
public Iterable<Currency> listCurrencies()
listCurrencies
in interface PricingService
public Iterable<Currency> listCurrencies(com.google.common.base.Predicate<Currency> filter)
PricingService
listCurrencies
in interface PricingService
public Currency findCurrency(com.google.common.base.Predicate<Currency> filter)
PricingService
null
if none is found.findCurrency
in interface PricingService
Copyright © 2009-2013 jclouds. All Rights Reserved.