summaryrefslogtreecommitdiff
path: root/android_icu4j/src/main/java/android/icu/message2/SelectorFactory.java
blob: 10d76d36cf3f601f6c42525a2720d3f198cee9d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/* GENERATED SOURCE. DO NOT MODIFY. */
// © 2022 and later: Unicode, Inc. and others.
// License & terms of use: https://www.unicode.org/copyright.html

package android.icu.message2;

import java.util.Locale;
import java.util.Map;

/**
 * The interface that must be implemented for each selection function
 * that can be used from {@link MessageFormatter}.
 *
 * <p>The we use it to create and cache various selectors with various options.</p>
 *
 * @deprecated This API is for technology preview only.
 * @hide Only a subset of ICU is exposed in Android
 * @hide draft / provisional / internal are hidden on Android
 */
@Deprecated
public interface SelectorFactory {
    /**
     * The method that is called to create a selector.
     *
     * @param locale the locale to use for selection.
     * @param fixedOptions the options to use for selection. The keys and values are function dependent.
     * @return The Selector.
     *
     * @deprecated This API is for technology preview only.
     * @hide draft / provisional / internal are hidden on Android
     */
    @Deprecated
    Selector createSelector(Locale locale, Map<String, Object> fixedOptions);
}