public class LocaleManagerService extends java.lang.Object implements LocaleManager, LocaleProvider
Modifier and Type | Class and Description |
---|---|
static interface |
LocaleManagerService.LocaleManagerConfiguration |
ObservableValue.Change<T>
DEFAULT_MANAGER
Constructor and Description |
---|
LocaleManagerService()
Create empty manager
|
Modifier and Type | Method and Description |
---|---|
Observable<ObservableValue.Change<java.util.Locale>> |
changes() |
java.util.Locale |
get()
Immediately resolve the current value if one exists, otherwise throw a
MissingValueException with a cause representing the current failure
state. |
Disposable |
observe(Observer<? super java.util.Locale> observer)
Observers added will receive messages from this Observable.
|
java.util.Locale |
set(java.util.Locale locale)
Set the value of this property to the given value.
|
void |
setProblem(java.lang.Throwable t) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDefaultManager, getManager, getManager, setLocale
getLocale
over, tryGet
getProblem, isEqual, isMatching, isValid, tryGetProblem
aggregateBackpressure, aggregateBackpressure, collect, collectBackpressure, compose, concat, concat, concatMap, dropWhile, empty, executeOn, failingValue, filter, flatMap, getNext, map, materialize, merge, merge, mergeMap, 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, weakReference
map, over, setDefault, unset
public java.util.Locale get()
ObservableValue
MissingValueException
with a cause representing the current failure
state.get
in interface Observable<java.util.Locale>
get
in interface ObservableValue<java.util.Locale>
get
in interface Property<java.util.Locale>
public java.util.Locale set(java.util.Locale locale)
Property
public Disposable observe(Observer<? super java.util.Locale> observer)
Observable
observe
in interface Observable<java.util.Locale>
observer
- an observer to addpublic Observable<ObservableValue.Change<java.util.Locale>> changes()
changes
in interface ObservableValue<java.util.Locale>
public void setProblem(java.lang.Throwable t)
setProblem
in interface ObservableProperty<java.util.Locale>