All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cdc.applic.dictionaries.impl.DescriptionSetter Maven / Gradle / Ivy

package cdc.applic.dictionaries.impl;

import java.util.Locale;

/**
 * Interfaces used to set descriptions.
 *
 * @author Damien Carbonne
 *
 * @param  The reflexive type.
 */
public interface DescriptionSetter> {
    /**
     * Sets the description associated to a locale.
     *
     * @param locale The locale.
     * @param content The description.
     * @return This object.
     */
    public R description(Locale locale,
                         String content);

    /**
     * Sets the description associated to a locale defined by its language tag.
     *
     * @param locale The locale language tag.
     * @param content The description.
     * @return This object.
     */
    public default R description(String locale,
                                 String content) {
        return description(Locale.forLanguageTag(locale), content);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy