/** * Obtains an instance from the specified external name, index name and type. * * @param externalName the unique name * @param indexName the name of the index * @param type the type - Ibor, Overnight or Price * @return the name * @throws IllegalArgumentException if the name is not known */ public static ImmutableFloatingRateName of(String externalName, String indexName, FloatingRateType type) { return new ImmutableFloatingRateName(externalName, indexName, type, null); }
@Override public ImmutableFloatingRateName build() { return new ImmutableFloatingRateName( externalName, indexName, type, fixingDateOffsetDays); }
/** * Obtains an instance from the specified external name, index name and type. * * @param externalName the unique name * @param indexName the name of the index * @param type the type - Ibor, Overnight or Price * @param fixingDateOffsetDays the fixing date offset, in days, negative to use the standard * @return the name * @throws IllegalArgumentException if the name is not known */ public static ImmutableFloatingRateName of( String externalName, String indexName, FloatingRateType type, int fixingDateOffsetDays) { return new ImmutableFloatingRateName(externalName, indexName, type, fixingDateOffsetDays >= 0 ? fixingDateOffsetDays : null); }