SimpleYieldConvention implements YieldConvention, Serializable { @Override public String getName() { return _name; } protected  SimpleYieldConvention(final String name); @Override @Deprecated String getConventionName(); @Override String getName(); @Override String toString(); @Override int hashCode(); @Override /** * Note this is not case sensitive */ boolean equals(Object obj); static final YieldConvention UK_STRIP_METHOD; static final YieldConvention UK_BUMP_DMO_METHOD; static final YieldConvention US_IL_REAL; static final YieldConvention INDEX_LINKED_FLOAT; static final YieldConvention UK_IL_BOND; static final YieldConvention US_STREET; static final YieldConvention US_TREASURY_EQUIVALENT; static final YieldConvention MONEY_MARKET; static final YieldConvention JGB_SIMPLE; static final YieldConvention TRUE; static final YieldConvention US_BOND; static final YieldConvention GERMAN_BOND; static final YieldConvention DISCOUNT; static final YieldConvention INTERESTATMTY; static final YieldConvention STEP_FLOATER; static final YieldConvention JAPAN_SIMPLE; static final YieldConvention BANK_OF_CANADA; static final YieldConvention CANADA_COMPND_METHOD; static final YieldConvention PAY_IN_KIND; static final YieldConvention FLOAT_RATE_NOTE; static final YieldConvention TOGGLE_PIK_NOTES; static final YieldConvention INTEREST_AT_MATURITY; static final YieldConvention FRANCE_COMPOUND_METHOD; static final YieldConvention SPAIN_GOVERNMENT_BONDS; static final YieldConvention GREEK_GOVERNMENT_BONDS; static final YieldConvention FINLAND_GOVERNMENT_BONDS; static final YieldConvention AUSTRIA_ISMA_METHOD; static final YieldConvention ITALY_TREASURY_BONDS; static final YieldConvention SPANISH_T_BILLS; static final YieldConvention PORTUGAL_DOMESTIC_SETTLE; static final YieldConvention ITALY_TREASURY_BILL; static final YieldConvention AUSTRALIA_EX_DIVIDEND; static final YieldConvention MEXICAN_BONOS; }
@Test public void test() { final String name = "CONV"; final SimpleYieldConvention convention = new SimpleYieldConvention(name); assertEquals(convention.getName(), name); }