@Deprecated
public interface Selector
MessageFormatter
.
Selectors are used to choose between different message variants,
similar to plural
, selectordinal
,
and select
in MessageFormat
.
Modifier and Type | Method and Description |
---|---|
boolean |
matches(java.lang.Object value,
java.lang.String key,
java.util.Map<java.lang.String,java.lang.Object> variableOptions)
Deprecated.
This API is for technology preview only.
|
@Deprecated boolean matches(java.lang.Object value, java.lang.String key, java.util.Map<java.lang.String,java.lang.Object> variableOptions)
For example an English plural matches
would return true
for matches(1, "1")
, matches(1, "one")
, and matches(1, "*")
.
value
- the value to select on.key
- the key to test for matching.variableOptions
- options that are not know at build time.Copyright ? 2016 Unicode, Inc. and others.