private static void parseFixingDateOffset(PropertySet section, HashMap<String, ImmutableFloatingRateName> mutableMap) { // find our names from the RHS of the key/value pairs for (String key : section.keys()) { Integer days = Integer.parseInt(section.value(key)); ImmutableFloatingRateName name = mutableMap.get(key.toUpperCase(Locale.ENGLISH)); ImmutableFloatingRateName updated = name.toBuilder().fixingDateOffsetDays(days).build(); mutableMap.put(key.toUpperCase(Locale.ENGLISH), updated); } }
/** * Returns a builder used to create an instance of the bean. * @return the builder, not null */ static ImmutableFloatingRateName.Builder builder() { return new ImmutableFloatingRateName.Builder(); }
@Override public ImmutableFloatingRateName.Builder builder() { return new ImmutableFloatingRateName.Builder(); }
/** * Returns a builder that allows this bean to be mutated. * @return the mutable builder, not null */ Builder toBuilder() { return new Builder(this); }