//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Override @SuppressWarnings("unchecked") public <R> java.util.Set<com.opengamma.strata.data.MarketDataId<R>> findIds(com.opengamma.strata.data.MarketDataName<R> name)
        public ISet <MarketDataId <R> > findIds <R>(MarketDataName <R> name)
        {
            ISet <MarketDataId <R> > ids = underlying.findIds(name);

            if (id is NamedMarketDataId)
            {
//JAVA TO C# CONVERTER WARNING: Java wildcard generics have no direct equivalent in .NET:
//ORIGINAL LINE: com.opengamma.strata.data.NamedMarketDataId<?> named = (com.opengamma.strata.data.NamedMarketDataId<?>) id;
                NamedMarketDataId <object> named = (NamedMarketDataId <object>)id;
                if (named.MarketDataName.Equals(name))
                {
                    return(ImmutableSet.builder <MarketDataId <R> >().addAll(ids).add((MarketDataId <R>)id).build());
                }
            }
            return(ids);
        }
Ejemplo n.º 2
0
 public bool matches(NamedMarketDataId <T> marketDataId, MarketDataBox <T> marketData, ReferenceData refData)
 {
     return(marketDataId.MarketDataName.Equals(name));
 }