Code example for ImmutableMap

Methods: get

0
  } 
 
  //------------------------------------------------------------------------- 
  @Override 
  protected HistoricalTimeSeriesProviderGetResult doBulkGet(HistoricalTimeSeriesProviderGetRequest request) {
    HistoricalTimeSeriesProvider underlying = _providers.get(request.getDataSource());
    if (underlying == null) {
      throw new IllegalArgumentException("Unknown data source: " + request.getDataSource());
    } 
    return underlying.getHistoricalTimeSeries(request);
  } 
 
  //------------------------------------------------------------------------- 
  @Override 
  public String toString() {
    return DelegatingHistoricalTimeSeriesProvider.class.getSimpleName() + ImmutableList.copyOf(_providers.keySet());
  } 
 
}