com.twitter.util.tunable.Tunable
A Tunable that always returns value when applied.
value
Returns the current value of this Tunable as an Option.
Option
Returns the current value of this Tunable as an Option. If the Tunable has a value, returns Some(value). Otherwise, returns None.
Some(value)
None
Returns a Var that observes this Tunable.
Returns a Var that observes this Tunable. Observers of the Var will be notified whenever the value of this Tunable is updated.
id of this Tunable, used in toString.
toString
id of this Tunable, used in toString. Must not be empty and should be unique.
Returns a Tunable containing the result of applying f to this Tunable value.
the returned Tunable will have the id of this Tunable
id
Compose this Tunable with another Tunable.
Compose this Tunable with another Tunable. Application of the returned Tunable will return the result of applying this Tunable, if it is defined and the result of applying the other Tunable if not.
A Tunable that always returns
value
when applied.