Top Description Inners Constructors Methods
com.ibm.icu.message2

pack-priv Class TextSelectorFactory

extends Object
implements SelectorFactory
Class Inheritance
All Implemented Interfaces
com.ibm.icu.message2.SelectorFactory
Imports
java.util.Locale, .Map

Deprecated

as a consequence of SelectorFactory being deprecated. See corresponding docs for further information.

Creates a Selector doing literal selection, similar to {exp, select} in com.ibm.icu.text.MessageFormat.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
TextSelectorFactory.TextSelector

Deprecated as a consequence of Selector being deprecated.

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public Selector
createSelector(Locale
the locale to use for selection.
locale
,
Map<String, Object>
the options to use for selection. The keys and values are function dependent.
fixedOptions
)

Implements com.ibm.icu.message2.SelectorFactory.createSelector.

Deprecated as a consequence of Selector being deprecated.
The method that is called to create a selector.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

TextSelectorFactoryback to summary
pack-priv TextSelectorFactory()

Method Detail

createSelectorback to summary
public Selector createSelector(Locale locale, Map<String, Object> fixedOptions)

Implements com.ibm.icu.message2.SelectorFactory.createSelector.

Doc from com.ibm.icu.message2.SelectorFactory.createSelector.

Deprecated

as a consequence of Selector being deprecated. See corresponding docs for further information.

The method that is called to create a selector.

Parameters
locale:Locale

the locale to use for selection.

fixedOptions:Map<String, Object>

the options to use for selection. The keys and values are function dependent.

Returns:Selector

The Selector.

Annotations
@Override
com.ibm.icu.message2 back to summary

private Class TextSelectorFactory.TextSelector

extends Object
implements Selector
Class Inheritance
All Implemented Interfaces
com.ibm.icu.message2.Selector

Deprecated

as a consequence of Selector being deprecated. See corresponding docs for further information.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public boolean
matches(Object
the value to select on.
value
,
String
the key to test for matching.
key
,
Map<String, Object>
options that are not know at build time.
variableOptions
)

Implements com.ibm.icu.message2.Selector.matches.

A method that is invoked for the object to match and each key.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

TextSelectorback to summary
private TextSelector()

Method Detail

matchesback to summary
public boolean matches(Object value, String key, Map<String, Object> variableOptions)

Implements com.ibm.icu.message2.Selector.matches.

Doc from com.ibm.icu.message2.Selector.matches.

A method that is invoked for the object to match and each key.

For example an English plural matches would return true for matches(1, "1"), matches(1, "one"), and matches(1, "*").

Parameters
value:Object

the value to select on.

key:String

the key to test for matching.

variableOptions:Map<String, Object>

options that are not know at build time.

Returns:boolean

the formatted string.

Annotations
@Override