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

com.force.i18n.LocaleAttributesUtil Maven / Gradle / Ivy

There is a newer version: 1.2.30
Show newest version
/* 
 * Copyright (c) 2017, salesforce.com, inc.
 * All rights reserved.
 * Licensed under the BSD 3-Clause license. 
 * For full license text, see LICENSE.txt file in the repo root  or https://opensource.org/licenses/BSD-3-Clause
 */

package com.force.i18n;

import java.util.Locale;

/**
 * Provides extra attributes about Locale instances.
 * @author jared.pearson
 */
public interface LocaleAttributesUtil {
    /**
     * @return true when the specified locale should be considered "formal", in that you should always use the full
     * name when addressing a user.
     * @param locale the locale to test
     */
    public boolean isFormalLocale(Locale locale);

    /**
     * @return true when the specified locale uses an eastern name order.
     * @param locale the locale to test
     */
    public boolean useEasternNameOrder(Locale locale);
    
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy