T - the type of the valuepublic interface Localized<T> extends ObservableValue<T>
ObservableValue.Change<T>| Modifier and Type | Method and Description |
|---|---|
static <T> Localized<T> |
forStaticLocale(T value,
java.util.Locale locale)
Create a localized view of a value with a static locale.
|
T |
get()
Immediately resolve the current value if one exists, otherwise throw a
MissingValueException with a cause representing the current failure
state. |
T |
get(java.util.Locale locale) |
ObservableValue<java.util.Locale> |
locale() |
changes, getProblem, isEqual, isMatching, isValid, tryGet, tryGetProblemaggregateBackpressure, aggregateBackpressure, collect, collectBackpressure, compose, concat, concat, concatMap, dropWhile, empty, executeOn, failingValue, filter, flatMap, getNext, map, materialize, merge, merge, mergeMap, observe, observe, of, of, of, reduce, reduceBackpressure, reduceBackpressure, reduceBackpressure, repeating, requestNext, requestUnbounded, retrying, softReference, softReference, synchronize, synchronize, takeWhile, then, thenAfter, toObservable, toValue, toValue, toValue, upcast, value, weakReference, weakReferenceObservableValue<java.util.Locale> locale()
T get()
ObservableValueMissingValueException with a cause representing the current failure
state.get in interface Observable<T>get in interface ObservableValue<T>T get(java.util.Locale locale)
locale - the locale to translate tostatic <T> Localized<T> forStaticLocale(T value, java.util.Locale locale)
T - the type of the localized valuevalue - the localized valuelocale - the locale of the given text