//-----------------------------------------------------------------------
 public override bool Equals(object obj)
 {
     if (obj == this)
     {
         return(true);
     }
     if (obj != null && obj.GetType() == this.GetType())
     {
         DefaultLegalEntityDiscountingMarketDataLookup other = (DefaultLegalEntityDiscountingMarketDataLookup)obj;
         return(JodaBeanUtils.equal(repoCurveSecurityGroups, other.repoCurveSecurityGroups) && JodaBeanUtils.equal(repoCurveGroups, other.repoCurveGroups) && JodaBeanUtils.equal(repoCurves, other.repoCurves) && JodaBeanUtils.equal(issuerCurveGroups, other.issuerCurveGroups) && JodaBeanUtils.equal(issuerCurves, other.issuerCurves) && JodaBeanUtils.equal(observableSource, other.observableSource));
     }
     return(false);
 }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @ImmutableConstructor private DefaultLookupLegalEntityDiscountingProvider(DefaultLegalEntityDiscountingMarketDataLookup lookup, com.opengamma.strata.data.MarketData marketData)
        private DefaultLookupLegalEntityDiscountingProvider(DefaultLegalEntityDiscountingMarketDataLookup lookup, MarketData marketData)
        {
            this.lookup     = ArgChecker.notNull(lookup, "lookup");
            this.marketData = ArgChecker.notNull(marketData, "marketData");
        }
 //-------------------------------------------------------------------------
 /// <summary>
 /// Obtains an instance based on a lookup and market data.
 /// <para>
 /// The lookup provides the mapping to repo and issuer curve IDs.
 /// The curves are in the market data.
 ///
 /// </para>
 /// </summary>
 /// <param name="lookup">  the lookup </param>
 /// <param name="marketData">  the market data </param>
 /// <returns> the rates provider </returns>
 public static DefaultLookupLegalEntityDiscountingProvider of(DefaultLegalEntityDiscountingMarketDataLookup lookup, MarketData marketData)
 {
     return(new DefaultLookupLegalEntityDiscountingProvider(lookup, marketData));
 }