Package com.ibm.icu.message2
Interface Selector
-
- All Known Implementing Classes:
NumberFormatterFactory.PluralSelectorImpl
,TextSelectorFactory.TextSelector
@Deprecated public interface Selector
Deprecated.This API is for technology preview only.The interface that must be implemented by all selectors that can be used fromMessageFormatter
.Selectors are used to choose between different message variants, similar to
plural
,selectordinal
, andselect
inMessageFormat
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description java.util.List<java.lang.String>
matches(java.lang.Object value, java.util.List<java.lang.String> keys, java.util.Map<java.lang.String,java.lang.Object> variableOptions)
Deprecated.This API is for technology preview only.
-
-
-
Method Detail
-
matches
@Deprecated java.util.List<java.lang.String> matches(java.lang.Object value, java.util.List<java.lang.String> keys, java.util.Map<java.lang.String,java.lang.Object> variableOptions)
Deprecated.This API is for technology preview only.A method that is invoked for the object to match and each key.For example an English plural
matches
would returntrue
formatches(1, "1")
,matches(1, "one")
, andmatches(1, "*")
.- Parameters:
value
- the value to select on.keys
- the key to test for matching.variableOptions
- options that are not know at build time.- Returns:
- the formatted string.
-
-