SwapMultilegDefinition implements InstrumentDefinitionWithData<SwapMultileg, ZonedDateTimeDoubleTimeSeries[]> { public AnnuityDefinition<? extends PaymentDefinition>[] getLegs() { return _legs; } SwapMultilegDefinition(final AnnuityDefinition<? extends PaymentDefinition>[] legs); AnnuityDefinition<? extends PaymentDefinition>[] getLegs(); @Override SwapMultileg toDerivative(ZonedDateTime date); @Override SwapMultileg toDerivative(ZonedDateTime date, ZonedDateTimeDoubleTimeSeries[] data); @Override V accept(InstrumentDefinitionVisitor<U, V> visitor, U data); @Override V accept(InstrumentDefinitionVisitor<?, V> visitor); @Override int hashCode(); @Override boolean equals(Object obj);  }
@Test public void getter() { assertEquals("SwapMultilegDefinition: getter", LEGS_DEFINITION, SWAP_MULTI_LEG_DEFINITION.getLegs()); }