CreditCurveIdentifier implements UniqueIdentifiable, ObjectIdentifiable { @Deprecated public static CreditCurveIdentifier of(final ExternalId redCode, final Currency currency, final String term, final String seniority, final String restructuringClause) { ArgumentChecker.notNull(redCode, "redCode"); return new CreditCurveIdentifier(redCode.getValue(), currency, term, seniority, restructuringClause); } private  CreditCurveIdentifier(final String redCode,
                                final Currency currency,
                                final String term,
                                final String seniority,
                                final String restructuringClause); private  CreditCurveIdentifier(final String curveTypePrefix,
                                final String redCode,
                                final Currency currency,
                                final String term,
                                final String seniority,
                                final String restructuringClause); private  CreditCurveIdentifier(final String redCode); @Deprecated static CreditCurveIdentifier of(final ExternalId redCode,
                                         final Currency currency,
                                         final String term,
                                         final String seniority,
                                         final String restructuringClause); @Deprecated static CreditCurveIdentifier of(final String redCode,
                                         final Currency currency,
                                         final String term,
                                         final String seniority,
                                         final String restructuringClause); static CreditCurveIdentifier of(final ExternalId redCode,
                                         final Currency currency,
                                         final String seniority,
                                         final String restructuringClause); static CreditCurveIdentifier of(final String redCode,
                                         final Currency currency,
                                         final String seniority,
                                         final String restructuringClause); static CreditCurveIdentifier of(final String curveTypePrefix,
                                         final String redCode,
                                         final Currency currency,
                                         final String seniority,
                                         final String restructuringClause); static CreditCurveIdentifier of(final String redCode); static CreditCurveIdentifier of(final ExternalId redCode); static CreditCurveIdentifier of(final UniqueId uniqueId); String getRedCode(); String getSeniority(); String getRestructuringClause(); Currency getCurrency(); @Deprecated String getTerm(); String getCurveTypePrefix(); @Override ObjectId getObjectId(); @Override UniqueId getUniqueId(); @Override int hashCode(); @Override boolean equals(final Object obj); @Override String toString(); static final String OBJECT_SCHEME; }
@Test(expectedExceptions = IllegalArgumentException.class) public void testNullIssuer() { CreditCurveIdentifier.of((String) null, CURRENCY, TERM, SENIORITY, RESTRUCTURING_CLAUSE); }
@Test(expectedExceptions = IllegalArgumentException.class) public void testNullSeniority() { CreditCurveIdentifier.of(RED_CODE, CURRENCY, TERM, null, RESTRUCTURING_CLAUSE); }
@Test(expectedExceptions = IllegalArgumentException.class) public void testNullRestructuringClause() { CreditCurveIdentifier.of(RED_CODE, CURRENCY, TERM, SENIORITY, null); }