示例#1
0
 public bool matches(MarketDataId <T> marketDataId, MarketDataBox <T> marketData, ReferenceData refData)
 {
     return(marketDataId.Equals(id));
 }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @SuppressWarnings("unchecked") public <T> java.util.Optional<T> findValue(MarketDataId<T> id)
            public Optional <T> findValue <T>(MarketDataId <T> id)
            {
                return(id.Equals(ID1) ? ((T)VAL1) : null);
            }
示例#3
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @SuppressWarnings("unchecked") public <T> java.util.Optional<MarketDataBox<T>> findValue(com.opengamma.strata.data.MarketDataId<T> id)
            public Optional <MarketDataBox <T> > findValue <T>(MarketDataId <T> id)
            {
                return(id.Equals(ID1) ? ((MarketDataBox <T>)BOX1) : null);
            }