FixedIncomeStrip implements Serializable, Comparable<FixedIncomeStrip> { public int getNumberOfFuturesAfterTenor() { if (_instrumentType != StripInstrumentType.FUTURE) { throw new IllegalStateException("Cannot get number of futures after tenor for a non-future strip " + toString()); } return _nthFutureFromTenor; } FixedIncomeStrip(final StripInstrumentType instrumentType, final Tenor curveNodePointTime, final String conventionName);  FixedIncomeStrip(final StripInstrumentType instrumentType, final Tenor curveNodePointTime, final int nthFutureFromTenor, final String conventionName);  FixedIncomeStrip(final StripInstrumentType instrumentType, final Tenor curveNodePointTime, final int periodsPerYear, final boolean isPeriodicZeroDepositStrip,
      final String conventionName);  FixedIncomeStrip(final StripInstrumentType instrumentType, final Tenor curveNodePointTime, final Tenor payTenor, final Tenor receiveTenor,
      final IndexType payIndexType, final IndexType receiveIndexType, final String conventionName);  FixedIncomeStrip(final StripInstrumentType instrumentType, final Tenor curveNodePointTime, final Tenor resetTenor,
      final IndexType indexType, final String conventionName);  FixedIncomeStrip(final FixedIncomeStrip strip1, final FixedIncomeStrip strip2, final OperationType operation, final Tenor curveNodePointTime,
      final String conventionName); StripInstrumentType getInstrumentType(); Tenor getCurveNodePointTime(); int getNumberOfFuturesAfterTenor(); int getPeriodsPerYear(); String getConventionName(); Tenor getEffectiveTenor(); Tenor getPayTenor(); Tenor getReceiveTenor(); Tenor getResetTenor(); IndexType getPayIndexType(); IndexType getReceiveIndexType(); IndexType getIndexType(); FixedIncomeStrip getStrip1(); FixedIncomeStrip getStrip2(); OperationType getOperation(); @Override int compareTo(final FixedIncomeStrip other); @Override boolean equals(final Object obj); @Override int hashCode(); @Override String toString(); void toFudgeMsg(final FudgeSerializer serializer, final MutableFudgeMsg message); static FixedIncomeStrip fromFudgeMsg(final FudgeDeserializer deserializer, final FudgeMsg message);  }
@Test(expectedExceptions = IllegalStateException.class) public void testSwapNumberOfFutures() { new FixedIncomeStrip(StripInstrumentType.SWAP, Tenor.of(Period.ofYears(5)), "Test").getNumberOfFuturesAfterTenor(); }