public final class MappingBindings extends Object
Modifier and Type | Method and Description |
---|---|
static <T> BooleanBinding |
mapAsBoolean(ObservableValue<T> observable,
Function<T,Boolean> mapper)
Converts an observable into a boolean binding.
|
static <T> BooleanBinding |
mapAsBoolean(ObservableValue<T> observable,
ObservableValue<Function<T,Boolean>> mapper)
Converts an observable into a boolean binding.
|
static <T> DoubleBinding |
mapAsDouble(ObservableValue<T> observable,
Function<T,Double> mapper)
Converts an observable into a double binding.
|
static <T> DoubleBinding |
mapAsDouble(ObservableValue<T> observable,
ObservableValue<Function<T,Double>> mapper)
Converts an observable into a double binding.
|
static <T> FloatBinding |
mapAsFloat(ObservableValue<T> observable,
Function<T,Float> mapper)
Converts an observable into a float binding.
|
static <T> FloatBinding |
mapAsFloat(ObservableValue<T> observable,
ObservableValue<Function<T,Float>> mapper)
Converts an observable into a float binding.
|
static <T> IntegerBinding |
mapAsInteger(ObservableValue<T> observable,
Function<T,Integer> mapper)
Converts an observable into an integer binding.
|
static <T> IntegerBinding |
mapAsInteger(ObservableValue<T> observable,
ObservableValue<Function<T,Integer>> mapper)
Converts an observable into an integer binding.
|
static <T> LongBinding |
mapAsLong(ObservableValue<T> observable,
Function<T,Long> mapper)
Converts an observable into a long binding.
|
static <T> LongBinding |
mapAsLong(ObservableValue<T> observable,
ObservableValue<Function<T,Long>> mapper)
Converts an observable into a long binding.
|
static <T,R> ObjectBinding<R> |
mapAsObject(ObservableValue<T> observable,
Function<T,R> mapper)
Converts an observable into an object binding.
|
static <T,R> ObjectBinding<R> |
mapAsObject(ObservableValue<T> observable,
ObservableValue<Function<T,R>> mapper)
Converts an observable into an object binding.
|
static <T> StringBinding |
mapAsString(ObservableValue<T> observable,
Function<T,String> mapper)
Converts an observable into a string binding.
|
static <T> StringBinding |
mapAsString(ObservableValue<T> observable,
ObservableValue<Function<T,String>> mapper)
Converts an observable into a string binding.
|
static BooleanBinding |
mapBoolean(ObservableValue<Boolean> observable,
Function<Boolean,Boolean> mapper)
Creates a boolean binding containing the value of the mapper function applied to the source observable.
|
static BooleanBinding |
mapBoolean(ObservableValue<Boolean> observable,
Function<Boolean,Boolean> mapper,
Boolean defaultValue)
Creates a boolean binding containing the value of the mapper function applied to the source observable.
|
static BooleanBinding |
mapBoolean(ObservableValue<Boolean> observable,
Function<Boolean,Boolean> mapper,
Supplier<Boolean> supplier)
Creates a boolean binding containing the value of the mapper function applied to the source observable.
|
static BooleanBinding |
mapBoolean(ObservableValue<Boolean> observable,
ObservableValue<Function<Boolean,Boolean>> mapper)
Creates a boolean binding containing the value of the mapper function applied to the source observable.
|
static BooleanBinding |
mapBoolean(ObservableValue<Boolean> observable,
ObservableValue<Function<Boolean,Boolean>> mapper,
Boolean defaultValue)
Creates a boolean binding containing the value of the mapper function applied to the source observable.
|
static BooleanBinding |
mapBoolean(ObservableValue<Boolean> observable,
ObservableValue<Function<Boolean,Boolean>> mapper,
Supplier<Boolean> supplier)
Creates a boolean binding containing the value of the mapper function applied to the source observable.
|
static BooleanBinding |
mapBooleans(ObservableValue<Boolean> observable1,
ObservableValue<Boolean> observable2,
Boolean defaultValue,
BiFunction<Boolean,Boolean,Boolean> mapper)
Returns a boolean binding whose value is the combination of two observable values.
|
static BooleanBinding |
mapBooleans(ObservableValue<Boolean> observable1,
ObservableValue<Boolean> observable2,
Boolean defaultValue,
ObservableValue<BiFunction<Boolean,Boolean,Boolean>> mapper)
Returns a boolean binding whose value is the combination of two observable values.
|
static BooleanBinding |
mapBooleans(ObservableValue<Boolean> observable1,
ObservableValue<Boolean> observable2,
Supplier<Boolean> supplier,
BiFunction<Boolean,Boolean,Boolean> mapper)
Returns a boolean binding whose value is the combination of two observable values.
|
static BooleanBinding |
mapBooleans(ObservableValue<Boolean> observable1,
ObservableValue<Boolean> observable2,
Supplier<Boolean> supplier,
ObservableValue<BiFunction<Boolean,Boolean,Boolean>> mapper)
Returns a boolean binding whose value is the combination of two observable values.
|
static DoubleBinding |
mapDouble(ObservableValue<? extends Number> observable)
Creates a double binding containing the value of the mapper function applied to the source observable.
|
static DoubleBinding |
mapDouble(ObservableValue<? extends Number> observable,
Double defaultValue)
Creates a double binding containing the value of the mapper function applied to the source observable.
|
static DoubleBinding |
mapDouble(ObservableValue<? extends Number> observable,
Supplier<Double> supplier)
Creates a double binding containing the value of the mapper function applied to the source observable.
|
static DoubleBinding |
mapDouble(ObservableValue<Double> observable,
Function<Double,Double> mapper)
Creates a double binding containing the value of the mapper function applied to the source observable.
|
static DoubleBinding |
mapDouble(ObservableValue<Double> observable,
Function<Double,Double> mapper,
Double defaultValue)
Creates a double binding containing the value of the mapper function applied to the source observable.
|
static DoubleBinding |
mapDouble(ObservableValue<Double> observable,
Function<Double,Double> mapper,
Supplier<Double> supplier)
Creates a double binding containing the value of the mapper function applied to the source observable.
|
static DoubleBinding |
mapDouble(ObservableValue<Double> observable,
ObservableValue<Function<Double,Double>> mapper)
Creates a double binding containing the value of the mapper function applied to the source observable.
|
static DoubleBinding |
mapDouble(ObservableValue<Double> observable,
ObservableValue<Function<Double,Double>> mapper,
Double defaultValue)
Creates a double binding containing the value of the mapper function applied to the source observable.
|
static DoubleBinding |
mapDouble(ObservableValue<Double> observable,
ObservableValue<Function<Double,Double>> mapper,
Supplier<Double> supplier)
Creates a double binding containing the value of the mapper function applied to the source observable.
|
static DoubleBinding |
mapDoubles(ObservableValue<? extends Number> observable1,
ObservableValue<? extends Number> observable2,
Double defaultValue,
BiFunction<? super Number,? super Number,Double> mapper)
Returns a double binding whose value is the combination of two observable values.
|
static DoubleBinding |
mapDoubles(ObservableValue<? extends Number> observable1,
ObservableValue<? extends Number> observable2,
Double defaultValue,
ObservableValue<BiFunction<? super Number,? super Number,Double>> mapper)
Returns a double binding whose value is the combination of two observable values.
|
static DoubleBinding |
mapDoubles(ObservableValue<? extends Number> observable1,
ObservableValue<? extends Number> observable2,
Supplier<Double> supplier,
BiFunction<? super Number,? super Number,Double> mapper)
Returns a double binding whose value is the combination of two observable values.
|
static DoubleBinding |
mapDoubles(ObservableValue<? extends Number> observable1,
ObservableValue<? extends Number> observable2,
Supplier<Double> supplier,
ObservableValue<BiFunction<? super Number,? super Number,Double>> mapper)
Returns a double binding whose value is the combination of two observable values.
|
static FloatBinding |
mapFloat(ObservableValue<? extends Number> observable)
Creates a float binding containing the value of the mapper function applied to the source observable.
|
static FloatBinding |
mapFloat(ObservableValue<? extends Number> observable,
Float defaultValue)
Creates a float binding containing the value of the mapper function applied to the source observable.
|
static FloatBinding |
mapFloat(ObservableValue<? extends Number> observable,
Supplier<Float> supplier)
Creates a float binding containing the value of the mapper function applied to the source observable.
|
static FloatBinding |
mapFloat(ObservableValue<Float> observable,
Function<Float,Float> mapper)
Creates a float binding containing the value of the mapper function applied to the source observable.
|
static FloatBinding |
mapFloat(ObservableValue<Float> observable,
Function<Float,Float> mapper,
Float defaultValue)
Creates a float binding containing the value of the mapper function applied to the source observable.
|
static FloatBinding |
mapFloat(ObservableValue<Float> observable,
Function<Float,Float> mapper,
Supplier<Float> supplier)
Creates a float binding containing the value of the mapper function applied to the source observable.
|
static FloatBinding |
mapFloat(ObservableValue<Float> observable,
ObservableValue<Function<Float,Float>> mapper)
Creates a float binding containing the value of the mapper function applied to the source observable.
|
static FloatBinding |
mapFloat(ObservableValue<Float> observable,
ObservableValue<Function<Float,Float>> mapper,
Float defaultValue)
Creates a float binding containing the value of the mapper function applied to the source observable.
|
static FloatBinding |
mapFloat(ObservableValue<Float> observable,
ObservableValue<Function<Float,Float>> mapper,
Supplier<Float> supplier)
Creates a float binding containing the value of the mapper function applied to the source observable.
|
static FloatBinding |
mapFloats(ObservableValue<? extends Number> observable1,
ObservableValue<? extends Number> observable2,
Float defaultValue,
BiFunction<? super Number,? super Number,Float> mapper)
Returns a float binding whose value is the combination of two observable values.
|
static FloatBinding |
mapFloats(ObservableValue<? extends Number> observable1,
ObservableValue<? extends Number> observable2,
Float defaultValue,
ObservableValue<BiFunction<? super Number,? super Number,Float>> mapper)
Returns a float binding whose value is the combination of two observable values.
|
static FloatBinding |
mapFloats(ObservableValue<? extends Number> observable1,
ObservableValue<? extends Number> observable2,
Supplier<Float> supplier,
BiFunction<? super Number,? super Number,Float> mapper)
Returns a float binding whose value is the combination of two observable values.
|
static FloatBinding |
mapFloats(ObservableValue<? extends Number> observable1,
ObservableValue<? extends Number> observable2,
Supplier<Float> supplier,
ObservableValue<BiFunction<? super Number,? super Number,Float>> mapper)
Returns a float binding whose value is the combination of two observable values.
|
static IntegerBinding |
mapInteger(ObservableValue<? extends Number> observable)
Creates an integer binding containing the value of the mapper function applied to the source observable.
|
static IntegerBinding |
mapInteger(ObservableValue<? extends Number> observable,
Integer defaultValue)
Creates an integer binding containing the value of the mapper function applied to the source observable.
|
static IntegerBinding |
mapInteger(ObservableValue<? extends Number> observable,
Supplier<Integer> supplier)
Creates an integer binding containing the value of the mapper function applied to the source observable.
|
static IntegerBinding |
mapInteger(ObservableValue<Integer> observable,
Function<Integer,Integer> mapper)
Creates an integer binding containing the value of the mapper function applied to the source observable.
|
static IntegerBinding |
mapInteger(ObservableValue<Integer> observable,
Function<Integer,Integer> mapper,
Integer defaultValue)
Creates an integer binding containing the value of the mapper function applied to the source observable.
|
static IntegerBinding |
mapInteger(ObservableValue<Integer> observable,
Function<Integer,Integer> mapper,
Supplier<Integer> supplier)
Creates an integer binding containing the value of the mapper function applied to the source observable.
|
static IntegerBinding |
mapInteger(ObservableValue<Integer> observable,
ObservableValue<Function<Integer,Integer>> mapper)
Creates an integer binding containing the value of the mapper function applied to the source observable.
|
static IntegerBinding |
mapInteger(ObservableValue<Integer> observable,
ObservableValue<Function<Integer,Integer>> mapper,
Integer defaultValue)
Creates an integer binding containing the value of the mapper function applied to the source observable.
|
static IntegerBinding |
mapInteger(ObservableValue<Integer> observable,
ObservableValue<Function<Integer,Integer>> mapper,
Supplier<Integer> supplier)
Creates an integer binding containing the value of the mapper function applied to the source observable.
|
static IntegerBinding |
mapIntegers(ObservableValue<? extends Number> observable1,
ObservableValue<? extends Number> observable2,
Integer defaultValue,
BiFunction<? super Number,? super Number,Integer> mapper)
Returns an integer binding whose value is the combination of two observable values.
|
static IntegerBinding |
mapIntegers(ObservableValue<? extends Number> observable1,
ObservableValue<? extends Number> observable2,
Integer defaultValue,
ObservableValue<BiFunction<? super Number,? super Number,Integer>> mapper)
Returns an integer binding whose value is the combination of two observable values.
|
static IntegerBinding |
mapIntegers(ObservableValue<? extends Number> observable1,
ObservableValue<? extends Number> observable2,
Supplier<Integer> supplier,
BiFunction<? super Number,? super Number,Integer> mapper)
Returns an integer binding whose value is the combination of two observable values.
|
static IntegerBinding |
mapIntegers(ObservableValue<? extends Number> observable1,
ObservableValue<? extends Number> observable2,
Supplier<Integer> supplier,
ObservableValue<BiFunction<? super Number,? super Number,Integer>> mapper)
Returns an integer binding whose value is the combination of two observable values.
|
static <S,T> ObservableList<T> |
mapList(ObservableList<? super S> source,
Function<S,T> mapper)
Creates an observable list where all elements of the source list are mapped by the supplied function.
|
static <S,T> ObservableList<T> |
mapList(ObservableList<S> source,
ObservableValue<Function<S,T>> mapper)
Creates an observable list where all elements of the source list are mapped by the supplied function.
|
static LongBinding |
mapLong(ObservableValue<? extends Number> observable)
Creates a long binding containing the value of the mapper function applied to the source observable.
|
static LongBinding |
mapLong(ObservableValue<? extends Number> observable,
Long defaultValue)
Creates a long binding containing the value of the mapper function applied to the source observable.
|
static LongBinding |
mapLong(ObservableValue<? extends Number> observable,
Supplier<Long> supplier)
Creates a long binding containing the value of the mapper function applied to the source observable.
|
static LongBinding |
mapLong(ObservableValue<Long> observable,
Function<Long,Long> mapper)
Creates a long binding containing the value of the mapper function applied to the source observable.
|
static LongBinding |
mapLong(ObservableValue<Long> observable,
Function<Long,Long> mapper,
Long defaultValue)
Creates a long binding containing the value of the mapper function applied to the source observable.
|
static LongBinding |
mapLong(ObservableValue<Long> observable,
Function<Long,Long> mapper,
Supplier<Long> supplier)
Creates a long binding containing the value of the mapper function applied to the source observable.
|
static LongBinding |
mapLong(ObservableValue<Long> observable,
ObservableValue<Function<Long,Long>> mapper)
Creates a long binding containing the value of the mapper function applied to the source observable.
|
static LongBinding |
mapLong(ObservableValue<Long> observable,
ObservableValue<Function<Long,Long>> mapper,
Long defaultValue)
Creates a long binding containing the value of the mapper function applied to the source observable.
|
static LongBinding |
mapLong(ObservableValue<Long> observable,
ObservableValue<Function<Long,Long>> mapper,
Supplier<Long> supplier)
Creates a long binding containing the value of the mapper function applied to the source observable.
|
static LongBinding |
mapLongs(ObservableValue<? extends Number> observable1,
ObservableValue<? extends Number> observable2,
Long defaultValue,
BiFunction<? super Number,? super Number,Long> mapper)
Returns a long binding whose value is the combination of two observable values.
|
static LongBinding |
mapLongs(ObservableValue<? extends Number> observable1,
ObservableValue<? extends Number> observable2,
Long defaultValue,
ObservableValue<BiFunction<? super Number,? super Number,Long>> mapper)
Returns a long binding whose value is the combination of two observable values.
|
static LongBinding |
mapLongs(ObservableValue<? extends Number> observable1,
ObservableValue<? extends Number> observable2,
Supplier<Long> supplier,
BiFunction<? super Number,? super Number,Long> mapper)
Returns a long binding whose value is the combination of two observable values.
|
static LongBinding |
mapLongs(ObservableValue<? extends Number> observable1,
ObservableValue<? extends Number> observable2,
Supplier<Long> supplier,
ObservableValue<BiFunction<? super Number,? super Number,Long>> mapper)
Returns a long binding whose value is the combination of two observable values.
|
static <T,R> ObjectBinding<R> |
mapObject(ObservableValue<T> observable,
Function<? super T,? extends R> mapper)
Creates an object binding containing the value of the mapper function applied to the source observable.
|
static <T,R> ObjectBinding<R> |
mapObject(ObservableValue<T> observable,
Function<? super T,? extends R> mapper,
R defaultValue)
Creates an object binding containing the value of the mapper function applied to the source observable.
|
static <T,R> ObjectBinding<R> |
mapObject(ObservableValue<T> observable,
Function<? super T,? extends R> mapper,
Supplier<R> supplier)
Creates an object binding containing the value of the mapper function applied to the source observable.
|
static <T,R> ObjectBinding<R> |
mapObject(ObservableValue<T> observable,
ObservableValue<Function<? super T,? extends R>> mapper)
Creates an object binding containing the value of the mapper function applied to the source observable.
|
static <T,R> ObjectBinding<R> |
mapObject(ObservableValue<T> observable,
ObservableValue<Function<? super T,? extends R>> mapper,
R defaultValue)
Creates an object binding containing the value of the mapper function applied to the source observable.
|
static <T,R> ObjectBinding<R> |
mapObject(ObservableValue<T> observable,
ObservableValue<Function<? super T,? extends R>> mapper,
Supplier<R> supplier)
Creates an object binding containing the value of the mapper function applied to the source observable.
|
static <A,B,R> ObjectBinding<R> |
mapObjects(ObservableValue<A> observable1,
ObservableValue<B> observable2,
R defaultValue,
BiFunction<? super A,? super B,R> mapper)
Returns an object binding whose value is the combination of two observable values.
|
static <A,B,R> ObjectBinding<R> |
mapObjects(ObservableValue<A> observable1,
ObservableValue<B> observable2,
R defaultValue,
ObservableValue<BiFunction<? super A,? super B,R>> mapper)
Returns an object binding whose value is the combination of two observable values.
|
static <A,B,R> ObjectBinding<R> |
mapObjects(ObservableValue<A> observable1,
ObservableValue<B> observable2,
Supplier<R> supplier,
BiFunction<? super A,? super B,R> mapper)
Returns an object binding whose value is the combination of two observable values.
|
static <A,B,R> ObjectBinding<R> |
mapObjects(ObservableValue<A> observable1,
ObservableValue<B> observable2,
Supplier<R> supplier,
ObservableValue<BiFunction<? super A,? super B,R>> mapper)
Returns an object binding whose value is the combination of two observable values.
|
static StringBinding |
mapString(ObservableValue<String> observable,
Function<String,String> mapper)
Creates a string binding containing the value of the mapper function applied to the source observable.
|
static StringBinding |
mapString(ObservableValue<String> observable,
Function<String,String> mapper,
String defaultValue)
Creates a string binding containing the value of the mapper function applied to the source observable.
|
static StringBinding |
mapString(ObservableValue<String> observable,
Function<String,String> mapper,
Supplier<String> supplier)
Creates a string binding containing the value of the mapper function applied to the source observable.
|
static StringBinding |
mapString(ObservableValue<String> observable,
ObservableValue<Function<String,String>> mapper)
Creates a string binding containing the value of the mapper function applied to the source observable.
|
static StringBinding |
mapString(ObservableValue<String> observable,
ObservableValue<Function<String,String>> mapper,
String defaultValue)
Creates a string binding containing the value of the mapper function applied to the source observable.
|
static StringBinding |
mapString(ObservableValue<String> observable,
ObservableValue<Function<String,String>> mapper,
Supplier<String> supplier)
Creates a string binding containing the value of the mapper function applied to the source observable.
|
static StringBinding |
mapStrings(ObservableValue<String> observable1,
ObservableValue<String> observable2,
String defaultValue,
BiFunction<String,String,String> mapper)
Returns a string binding whose value is the combination of two observable values.
|
static StringBinding |
mapStrings(ObservableValue<String> observable1,
ObservableValue<String> observable2,
String defaultValue,
ObservableValue<BiFunction<String,String,String>> mapper)
Returns a string binding whose value is the combination of two observable values.
|
static StringBinding |
mapStrings(ObservableValue<String> observable1,
ObservableValue<String> observable2,
Supplier<String> supplier,
BiFunction<String,String,String> mapper)
Returns a string binding whose value is the combination of two observable values.
|
static StringBinding |
mapStrings(ObservableValue<String> observable1,
ObservableValue<String> observable2,
Supplier<String> supplier,
ObservableValue<BiFunction<String,String,String>> mapper)
Returns a string binding whose value is the combination of two observable values.
|
static BooleanBinding |
mapToBoolean(ObservableObjectValue<Boolean> observable)
Converts a boolean object observable value into a boolean binding.
|
static DoubleBinding |
mapToDouble(ObservableObjectValue<Double> observable)
Converts a double object observable value into a double binding.
|
static FloatBinding |
mapToFloat(ObservableObjectValue<Float> observable)
Converts a float object observable value into a float binding.
|
static IntegerBinding |
mapToInteger(ObservableObjectValue<Integer> observable)
Converts a integer object observable value into a integer binding.
|
static LongBinding |
mapToLong(ObservableObjectValue<Long> observable)
Converts a long object observable value into a long binding.
|
static ObjectBinding<Boolean> |
mapToObject(ObservableBooleanValue observable)
Converts a boolean object observable value into an object binding.
|
static ObjectBinding<Double> |
mapToObject(ObservableDoubleValue observable)
Converts a double object observable value into an object binding.
|
static ObjectBinding<Float> |
mapToObject(ObservableFloatValue observable)
Converts a float object observable value into an object binding.
|
static ObjectBinding<Integer> |
mapToObject(ObservableIntegerValue observable)
Converts a integer object observable value into an object binding.
|
static ObjectBinding<Long> |
mapToObject(ObservableLongValue observable)
Converts a long object observable value into an object binding.
|
static ObjectBinding<String> |
mapToObject(ObservableStringValue observable)
Converts a string object observable value into an object binding.
|
static StringBinding |
mapToString(ObservableObjectValue<String> observable)
Converts a literal object observable value into a string binding.
|
@Nonnull public static <T,R> ObjectBinding<R> mapAsObject(@Nonnull ObservableValue<T> observable, @Nonnull Function<T,R> mapper)
observable
- the observable to be converted.mapper
- a non-interfering, stateless function to apply to the observable value.@Nonnull public static <T,R> ObjectBinding<R> mapAsObject(@Nonnull ObservableValue<T> observable, @Nonnull ObservableValue<Function<T,R>> mapper)
observable
- the observable to be converted.mapper
- a non-interfering, stateless function to apply to the observable value.@Nonnull public static <T> BooleanBinding mapAsBoolean(@Nonnull ObservableValue<T> observable, @Nonnull Function<T,Boolean> mapper)
observable
- the observable to be converted.mapper
- a non-interfering, stateless function to apply to the observable value.@Nonnull public static <T> BooleanBinding mapAsBoolean(@Nonnull ObservableValue<T> observable, @Nonnull ObservableValue<Function<T,Boolean>> mapper)
observable
- the observable to be converted.mapper
- a non-interfering, stateless function to apply to the observable value.@Nonnull public static <T> IntegerBinding mapAsInteger(@Nonnull ObservableValue<T> observable, @Nonnull Function<T,Integer> mapper)
observable
- the observable to be converted.mapper
- a non-interfering, stateless function to apply to the observable value.@Nonnull public static <T> IntegerBinding mapAsInteger(@Nonnull ObservableValue<T> observable, @Nonnull ObservableValue<Function<T,Integer>> mapper)
observable
- the observable to be converted.mapper
- a non-interfering, stateless function to apply to the observable value.@Nonnull public static <T> LongBinding mapAsLong(@Nonnull ObservableValue<T> observable, @Nonnull Function<T,Long> mapper)
observable
- the observable to be converted.mapper
- a non-interfering, stateless function to apply to the observable value.@Nonnull public static <T> LongBinding mapAsLong(@Nonnull ObservableValue<T> observable, @Nonnull ObservableValue<Function<T,Long>> mapper)
observable
- the observable to be converted.mapper
- a non-interfering, stateless function to apply to the observable value.@Nonnull public static <T> FloatBinding mapAsFloat(@Nonnull ObservableValue<T> observable, @Nonnull Function<T,Float> mapper)
observable
- the observable to be converted.mapper
- a non-interfering, stateless function to apply to the observable value.@Nonnull public static <T> FloatBinding mapAsFloat(@Nonnull ObservableValue<T> observable, @Nonnull ObservableValue<Function<T,Float>> mapper)
observable
- the observable to be converted.mapper
- a non-interfering, stateless function to apply to the observable value.@Nonnull public static <T> DoubleBinding mapAsDouble(@Nonnull ObservableValue<T> observable, @Nonnull Function<T,Double> mapper)
observable
- the observable to be converted.mapper
- a non-interfering, stateless function to apply to the observable value.@Nonnull public static <T> DoubleBinding mapAsDouble(@Nonnull ObservableValue<T> observable, @Nonnull ObservableValue<Function<T,Double>> mapper)
observable
- the observable to be converted.mapper
- a non-interfering, stateless function to apply to the observable value.@Nonnull public static <T> StringBinding mapAsString(@Nonnull ObservableValue<T> observable, @Nonnull Function<T,String> mapper)
observable
- the observable to be converted.mapper
- a non-interfering, stateless function to apply to the observable value.@Nonnull public static <T> StringBinding mapAsString(@Nonnull ObservableValue<T> observable, @Nonnull ObservableValue<Function<T,String>> mapper)
observable
- the observable to be converted.mapper
- a non-interfering, stateless function to apply to the observable value.@Nonnull public static ObjectBinding<String> mapToObject(@Nonnull ObservableStringValue observable)
observable
- the observable to be converted.@Nonnull public static ObjectBinding<Boolean> mapToObject(@Nonnull ObservableBooleanValue observable)
observable
- the observable to be converted.@Nonnull public static ObjectBinding<Integer> mapToObject(@Nonnull ObservableIntegerValue observable)
observable
- the observable to be converted.@Nonnull public static ObjectBinding<Long> mapToObject(@Nonnull ObservableLongValue observable)
observable
- the observable to be converted.@Nonnull public static ObjectBinding<Float> mapToObject(@Nonnull ObservableFloatValue observable)
observable
- the observable to be converted.@Nonnull public static ObjectBinding<Double> mapToObject(@Nonnull ObservableDoubleValue observable)
observable
- the observable to be converted.@Nonnull public static BooleanBinding mapToBoolean(@Nonnull ObservableObjectValue<Boolean> observable)
observable
- the observable to be converted.@Nonnull public static IntegerBinding mapToInteger(@Nonnull ObservableObjectValue<Integer> observable)
observable
- the observable to be converted.@Nonnull public static LongBinding mapToLong(@Nonnull ObservableObjectValue<Long> observable)
observable
- the observable to be converted.@Nonnull public static FloatBinding mapToFloat(@Nonnull ObservableObjectValue<Float> observable)
observable
- the observable to be converted.@Nonnull public static DoubleBinding mapToDouble(@Nonnull ObservableObjectValue<Double> observable)
observable
- the observable to be converted.@Nonnull public static StringBinding mapToString(@Nonnull ObservableObjectValue<String> observable)
observable
- the observable to be converted.@Nonnull public static <S,T> ObservableList<T> mapList(@Nonnull ObservableList<? super S> source, @Nonnull Function<S,T> mapper)
source
- the source list.mapper
- a non-interfering, stateless function to apply to the reduced value.@Nonnull public static <S,T> ObservableList<T> mapList(@Nonnull ObservableList<S> source, @Nonnull ObservableValue<Function<S,T>> mapper)
source
- the source list.mapper
- a non-interfering, stateless function to apply to the reduced value.@Nonnull public static <T,R> ObjectBinding<R> mapObject(@Nonnull ObservableValue<T> observable, @Nonnull Function<? super T,? extends R> mapper)
observable
- the source observable.mapper
- a non-interfering, stateless function to apply to the reduced value.@Nonnull public static <T,R> ObjectBinding<R> mapObject(@Nonnull ObservableValue<T> observable, @Nonnull Function<? super T,? extends R> mapper, @Nullable R defaultValue)
observable
- the source observable.mapper
- a non-interfering, stateless function to apply to the reduced value.defaultValue
- the value to be returned if there is no value present, may be null.@Nonnull public static <T,R> ObjectBinding<R> mapObject(@Nonnull ObservableValue<T> observable, @Nonnull Function<? super T,? extends R> mapper, @Nonnull Supplier<R> supplier)
observable
- the source observable.mapper
- a non-interfering, stateless function to apply to the reduced value.supplier
- a Supplier
whose result is returned if no value is present.@Nonnull public static <T,R> ObjectBinding<R> mapObject(@Nonnull ObservableValue<T> observable, @Nonnull ObservableValue<Function<? super T,? extends R>> mapper)
observable
- the source observable.mapper
- a non-interfering, stateless function to apply to the reduced value.@Nonnull public static <T,R> ObjectBinding<R> mapObject(@Nonnull ObservableValue<T> observable, @Nonnull ObservableValue<Function<? super T,? extends R>> mapper, @Nullable R defaultValue)
observable
- the source observable.mapper
- a non-interfering, stateless function to apply to the reduced value.defaultValue
- the value to be returned if there is no value present, may be null.@Nonnull public static <T,R> ObjectBinding<R> mapObject(@Nonnull ObservableValue<T> observable, @Nonnull ObservableValue<Function<? super T,? extends R>> mapper, @Nonnull Supplier<R> supplier)
observable
- the source observable.mapper
- a non-interfering, stateless function to apply to the reduced value.supplier
- a Supplier
whose result is returned if no value is present.@Nonnull public static BooleanBinding mapBoolean(@Nonnull ObservableValue<Boolean> observable, @Nonnull Function<Boolean,Boolean> mapper)
observable
- the source observable.mapper
- a non-interfering, stateless function to apply to the reduced value.@Nonnull public static BooleanBinding mapBoolean(@Nonnull ObservableValue<Boolean> observable, @Nonnull Function<Boolean,Boolean> mapper, @Nonnull Boolean defaultValue)
observable
- the source observable.mapper
- a non-interfering, stateless function to apply to the reduced value.defaultValue
- the value to be returned if there is no value present, may be null.@Nonnull public static BooleanBinding mapBoolean(@Nonnull ObservableValue<Boolean> observable, @Nonnull Function<Boolean,Boolean> mapper, @Nonnull Supplier<Boolean> supplier)
observable
- the source observable.mapper
- a non-interfering, stateless function to apply to the reduced value.supplier
- a Supplier
whose result is returned if no value is present.@Nonnull public static BooleanBinding mapBoolean(@Nonnull ObservableValue<Boolean> observable, @Nonnull ObservableValue<Function<Boolean,Boolean>> mapper)
observable
- the source observable.mapper
- a non-interfering, stateless function to apply to the reduced value.@Nonnull public static BooleanBinding mapBoolean(@Nonnull ObservableValue<Boolean> observable, @Nonnull ObservableValue<Function<Boolean,Boolean>> mapper, @Nonnull Boolean defaultValue)
observable
- the source observable.mapper
- a non-interfering, stateless function to apply to the reduced value.defaultValue
- the value to be returned if there is no value present, may be null.@Nonnull public static BooleanBinding mapBoolean(@Nonnull ObservableValue<Boolean> observable, @Nonnull ObservableValue<Function<Boolean,Boolean>> mapper, @Nonnull Supplier<Boolean> supplier)
observable
- the source observable.mapper
- a non-interfering, stateless function to apply to the reduced value.supplier
- a Supplier
whose result is returned if no value is present.@Nonnull public static IntegerBinding mapInteger(@Nonnull ObservableValue<Integer> observable, @Nonnull Function<Integer,Integer> mapper)
observable
- the source observable.mapper
- a non-interfering, stateless function to apply to the reduced value.@Nonnull public static IntegerBinding mapInteger(@Nonnull ObservableValue<Integer> observable, @Nonnull Function<Integer,Integer> mapper, @Nonnull Integer defaultValue)
observable
- the source observable.mapper
- a non-interfering, stateless function to apply to the reduced value.defaultValue
- the value to be returned if there is no value present, may be null.@Nonnull public static IntegerBinding mapInteger(@Nonnull ObservableValue<Integer> observable, @Nonnull Function<Integer,Integer> mapper, @Nonnull Supplier<Integer> supplier)
observable
- the source observable.mapper
- a non-interfering, stateless function to apply to the reduced value.supplier
- a Supplier
whose result is returned if no value is present.@Nonnull public static IntegerBinding mapInteger(@Nonnull ObservableValue<Integer> observable, @Nonnull ObservableValue<Function<Integer,Integer>> mapper)
observable
- the source observable.mapper
- a non-interfering, stateless function to apply to the reduced value.@Nonnull public static IntegerBinding mapInteger(@Nonnull ObservableValue<Integer> observable, @Nonnull ObservableValue<Function<Integer,Integer>> mapper, @Nonnull Integer defaultValue)
observable
- the source observable.mapper
- a non-interfering, stateless function to apply to the reduced value.defaultValue
- the value to be returned if there is no value present, may be null.@Nonnull public static IntegerBinding mapInteger(@Nonnull ObservableValue<Integer> observable, @Nonnull ObservableValue<Function<Integer,Integer>> mapper, @Nonnull Supplier<Integer> supplier)
observable
- the source observable.mapper
- a non-interfering, stateless function to apply to the reduced value.supplier
- a Supplier
whose result is returned if no value is present.@Nonnull public static LongBinding mapLong(@Nonnull ObservableValue<Long> observable, @Nonnull Function<Long,Long> mapper)
observable
- the source observable.mapper
- a non-interfering, stateless function to apply to the reduced value.@Nonnull public static LongBinding mapLong(@Nonnull ObservableValue<Long> observable, @Nonnull Function<Long,Long> mapper, @Nonnull Long defaultValue)
observable
- the source observable.mapper
- a non-interfering, stateless function to apply to the reduced value.defaultValue
- the value to be returned if there is no value present, may be null.@Nonnull public static LongBinding mapLong(@Nonnull ObservableValue<Long> observable, @Nonnull Function<Long,Long> mapper, @Nonnull Supplier<Long> supplier)
observable
- the source observable.mapper
- a non-interfering, stateless function to apply to the reduced value.supplier
- a Supplier
whose result is returned if no value is present.@Nonnull public static LongBinding mapLong(@Nonnull ObservableValue<Long> observable, @Nonnull ObservableValue<Function<Long,Long>> mapper)
observable
- the source observable.mapper
- a non-interfering, stateless function to apply to the reduced value.@Nonnull public static LongBinding mapLong(@Nonnull ObservableValue<Long> observable, @Nonnull ObservableValue<Function<Long,Long>> mapper, @Nonnull Long defaultValue)
observable
- the source observable.mapper
- a non-interfering, stateless function to apply to the reduced value.defaultValue
- the value to be returned if there is no value present, may be null.@Nonnull public static LongBinding mapLong(@Nonnull ObservableValue<Long> observable, @Nonnull ObservableValue<Function<Long,Long>> mapper, @Nonnull Supplier<Long> supplier)
observable
- the source observable.mapper
- a non-interfering, stateless function to apply to the reduced value.supplier
- a Supplier
whose result is returned if no value is present.@Nonnull public static FloatBinding mapFloat(@Nonnull ObservableValue<Float> observable, @Nonnull Function<Float,Float> mapper)
observable
- the source observable.mapper
- a non-interfering, stateless function to apply to the reduced value.@Nonnull public static FloatBinding mapFloat(@Nonnull ObservableValue<Float> observable, @Nonnull Function<Float,Float> mapper, @Nonnull Float defaultValue)
observable
- the source observable.mapper
- a non-interfering, stateless function to apply to the reduced value.defaultValue
- the value to be returned if there is no value present, may be null.@Nonnull public static FloatBinding mapFloat(@Nonnull ObservableValue<Float> observable, @Nonnull Function<Float,Float> mapper, @Nonnull Supplier<Float> supplier)
observable
- the source observable.mapper
- a non-interfering, stateless function to apply to the reduced value.supplier
- a Supplier
whose result is returned if no value is present.@Nonnull public static FloatBinding mapFloat(@Nonnull ObservableValue<Float> observable, @Nonnull ObservableValue<Function<Float,Float>> mapper)
observable
- the source observable.mapper
- a non-interfering, stateless function to apply to the reduced value.@Nonnull public static FloatBinding mapFloat(@Nonnull ObservableValue<Float> observable, @Nonnull ObservableValue<Function<Float,Float>> mapper, @Nullable Float defaultValue)
observable
- the source observable.mapper
- a non-interfering, stateless function to apply to the reduced value.defaultValue
- the value to be returned if there is no value present, may be null.@Nonnull public static FloatBinding mapFloat(@Nonnull ObservableValue<Float> observable, @Nonnull ObservableValue<Function<Float,Float>> mapper, @Nonnull Supplier<Float> supplier)
observable
- the source observable.mapper
- a non-interfering, stateless function to apply to the reduced value.supplier
- a Supplier
whose result is returned if no value is present.@Nonnull public static DoubleBinding mapDouble(@Nonnull ObservableValue<Double> observable, @Nonnull Function<Double,Double> mapper)
observable
- the source observable.mapper
- a non-interfering, stateless function to apply to the reduced value.@Nonnull public static DoubleBinding mapDouble(@Nonnull ObservableValue<Double> observable, @Nonnull Function<Double,Double> mapper, @Nullable Double defaultValue)
observable
- the source observable.mapper
- a non-interfering, stateless function to apply to the reduced value.defaultValue
- the value to be returned if there is no value present, may be null.@Nonnull public static DoubleBinding mapDouble(@Nonnull ObservableValue<Double> observable, @Nonnull Function<Double,Double> mapper, @Nonnull Supplier<Double> supplier)
observable
- the source observable.mapper
- a non-interfering, stateless function to apply to the reduced value.supplier
- a Supplier
whose result is returned if no value is present.@Nonnull public static DoubleBinding mapDouble(@Nonnull ObservableValue<Double> observable, @Nonnull ObservableValue<Function<Double,Double>> mapper)
observable
- the source observable.mapper
- a non-interfering, stateless function to apply to the reduced value.@Nonnull public static DoubleBinding mapDouble(@Nonnull ObservableValue<Double> observable, @Nonnull ObservableValue<Function<Double,Double>> mapper, @Nonnull Double defaultValue)
observable
- the source observable.mapper
- a non-interfering, stateless function to apply to the reduced value.defaultValue
- the value to be returned if there is no value present, may be null.@Nonnull public static DoubleBinding mapDouble(@Nonnull ObservableValue<Double> observable, @Nonnull ObservableValue<Function<Double,Double>> mapper, @Nonnull Supplier<Double> supplier)
observable
- the source observable.mapper
- a non-interfering, stateless function to apply to the reduced value.supplier
- a Supplier
whose result is returned if no value is present.@Nonnull public static StringBinding mapString(@Nonnull ObservableValue<String> observable, @Nonnull Function<String,String> mapper)
observable
- the source observable.mapper
- a non-interfering, stateless function to apply to the reduced value.@Nonnull public static StringBinding mapString(@Nonnull ObservableValue<String> observable, @Nonnull Function<String,String> mapper, @Nonnull String defaultValue)
observable
- the source observable.mapper
- a non-interfering, stateless function to apply to the reduced value.defaultValue
- the value to be returned if there is no value present, may be null.@Nonnull public static StringBinding mapString(@Nonnull ObservableValue<String> observable, @Nonnull Function<String,String> mapper, @Nonnull Supplier<String> supplier)
observable
- the source observable.mapper
- a non-interfering, stateless function to apply to the reduced value.supplier
- a Supplier
whose result is returned if no value is present.@Nonnull public static StringBinding mapString(@Nonnull ObservableValue<String> observable, @Nonnull ObservableValue<Function<String,String>> mapper)
observable
- the source observable.mapper
- a non-interfering, stateless function to apply to the reduced value.@Nonnull public static StringBinding mapString(@Nonnull ObservableValue<String> observable, @Nonnull ObservableValue<Function<String,String>> mapper, @Nonnull String defaultValue)
observable
- the source observable.mapper
- a non-interfering, stateless function to apply to the reduced value.defaultValue
- the value to be returned if there is no value present, may be null.@Nonnull public static StringBinding mapString(@Nonnull ObservableValue<String> observable, @Nonnull ObservableValue<Function<String,String>> mapper, @Nonnull Supplier<String> supplier)
observable
- the source observable.mapper
- a non-interfering, stateless function to apply to the reduced value.supplier
- a Supplier
whose result is returned if no value is present.@Nonnull public static BooleanBinding mapBooleans(@Nonnull ObservableValue<Boolean> observable1, @Nonnull ObservableValue<Boolean> observable2, @Nonnull Boolean defaultValue, @Nonnull BiFunction<Boolean,Boolean,Boolean> mapper)
observable1
- the first observable value.observable2
- the second observable value.defaultValue
- the value to be returned if there are no values present.mapper
- a non-interfering, stateless function to apply to the supplied values.@Nonnull public static BooleanBinding mapBooleans(@Nonnull ObservableValue<Boolean> observable1, @Nonnull ObservableValue<Boolean> observable2, @Nonnull Supplier<Boolean> supplier, @Nonnull BiFunction<Boolean,Boolean,Boolean> mapper)
observable1
- the first observable value.observable2
- the second observable value.supplier
- a Supplier
whose result is returned if no values are present.mapper
- a non-interfering, stateless function to apply to the supplied values.@Nonnull public static BooleanBinding mapBooleans(@Nonnull ObservableValue<Boolean> observable1, @Nonnull ObservableValue<Boolean> observable2, @Nonnull Boolean defaultValue, @Nonnull ObservableValue<BiFunction<Boolean,Boolean,Boolean>> mapper)
observable1
- the first observable value.observable2
- the second observable value.defaultValue
- the value to be returned if there is no value present.mapper
- a non-interfering, stateless function to apply to the supplied values.@Nonnull public static BooleanBinding mapBooleans(@Nonnull ObservableValue<Boolean> observable1, @Nonnull ObservableValue<Boolean> observable2, @Nonnull Supplier<Boolean> supplier, @Nonnull ObservableValue<BiFunction<Boolean,Boolean,Boolean>> mapper)
observable1
- the first observable value.observable2
- the second observable value.supplier
- a Supplier
whose result is returned if no value is present.mapper
- a non-interfering, stateless function to apply to the supplied values.@Nonnull public static IntegerBinding mapIntegers(@Nonnull ObservableValue<? extends Number> observable1, @Nonnull ObservableValue<? extends Number> observable2, @Nonnull Integer defaultValue, @Nonnull BiFunction<? super Number,? super Number,Integer> mapper)
observable1
- the first observable value.observable2
- the second observable value.defaultValue
- the value to be returned if there are no values present.mapper
- a non-interfering, stateless function to apply to the supplied values.@Nonnull public static IntegerBinding mapIntegers(@Nonnull ObservableValue<? extends Number> observable1, @Nonnull ObservableValue<? extends Number> observable2, @Nonnull Supplier<Integer> supplier, @Nonnull BiFunction<? super Number,? super Number,Integer> mapper)
observable1
- the first observable value.observable2
- the second observable value.supplier
- a Supplier
whose result is returned if no values are present.mapper
- a non-interfering, stateless function to apply to the supplied values.@Nonnull public static IntegerBinding mapIntegers(@Nonnull ObservableValue<? extends Number> observable1, @Nonnull ObservableValue<? extends Number> observable2, @Nonnull Integer defaultValue, @Nonnull ObservableValue<BiFunction<? super Number,? super Number,Integer>> mapper)
observable1
- the first observable value.observable2
- the second observable value.defaultValue
- the value to be returned if there is no value present.mapper
- a non-interfering, stateless function to apply to the supplied values.@Nonnull public static IntegerBinding mapIntegers(@Nonnull ObservableValue<? extends Number> observable1, @Nonnull ObservableValue<? extends Number> observable2, @Nonnull Supplier<Integer> supplier, @Nonnull ObservableValue<BiFunction<? super Number,? super Number,Integer>> mapper)
observable1
- the first observable value.observable2
- the second observable value.supplier
- a Supplier
whose result is returned if no value is present.mapper
- a non-interfering, stateless function to apply to the supplied values.@Nonnull public static LongBinding mapLongs(@Nonnull ObservableValue<? extends Number> observable1, @Nonnull ObservableValue<? extends Number> observable2, @Nonnull Long defaultValue, @Nonnull BiFunction<? super Number,? super Number,Long> mapper)
observable1
- the first observable value.observable2
- the second observable value.defaultValue
- the value to be returned if there are no values present.mapper
- a non-interfering, stateless function to apply to the supplied values.@Nonnull public static LongBinding mapLongs(@Nonnull ObservableValue<? extends Number> observable1, @Nonnull ObservableValue<? extends Number> observable2, @Nonnull Supplier<Long> supplier, @Nonnull BiFunction<? super Number,? super Number,Long> mapper)
observable1
- the first observable value.observable2
- the second observable value.supplier
- a Supplier
whose result is returned if no values are present.mapper
- a non-interfering, stateless function to apply to the supplied values.@Nonnull public static LongBinding mapLongs(@Nonnull ObservableValue<? extends Number> observable1, @Nonnull ObservableValue<? extends Number> observable2, @Nonnull Long defaultValue, @Nonnull ObservableValue<BiFunction<? super Number,? super Number,Long>> mapper)
observable1
- the first observable value.observable2
- the second observable value.defaultValue
- the value to be returned if there is no value present.mapper
- a non-interfering, stateless function to apply to the supplied values.@Nonnull public static LongBinding mapLongs(@Nonnull ObservableValue<? extends Number> observable1, @Nonnull ObservableValue<? extends Number> observable2, @Nonnull Supplier<Long> supplier, @Nonnull ObservableValue<BiFunction<? super Number,? super Number,Long>> mapper)
observable1
- the first observable value.observable2
- the second observable value.supplier
- a Supplier
whose result is returned if no value is present.mapper
- a non-interfering, stateless function to apply to the supplied values.@Nonnull public static FloatBinding mapFloats(@Nonnull ObservableValue<? extends Number> observable1, @Nonnull ObservableValue<? extends Number> observable2, @Nonnull Float defaultValue, @Nonnull BiFunction<? super Number,? super Number,Float> mapper)
observable1
- the first observable value.observable2
- the second observable value.defaultValue
- the value to be returned if there are no values present.mapper
- a non-interfering, stateless function to apply to the supplied values.@Nonnull public static FloatBinding mapFloats(@Nonnull ObservableValue<? extends Number> observable1, @Nonnull ObservableValue<? extends Number> observable2, @Nonnull Supplier<Float> supplier, @Nonnull BiFunction<? super Number,? super Number,Float> mapper)
observable1
- the first observable value.observable2
- the second observable value.supplier
- a Supplier
whose result is returned if no values are present.mapper
- a non-interfering, stateless function to apply to the supplied values.@Nonnull public static FloatBinding mapFloats(@Nonnull ObservableValue<? extends Number> observable1, @Nonnull ObservableValue<? extends Number> observable2, @Nonnull Float defaultValue, @Nonnull ObservableValue<BiFunction<? super Number,? super Number,Float>> mapper)
observable1
- the first observable value.observable2
- the second observable value.defaultValue
- the value to be returned if there is no value present.mapper
- a non-interfering, stateless function to apply to the supplied values.@Nonnull public static FloatBinding mapFloats(@Nonnull ObservableValue<? extends Number> observable1, @Nonnull ObservableValue<? extends Number> observable2, @Nonnull Supplier<Float> supplier, @Nonnull ObservableValue<BiFunction<? super Number,? super Number,Float>> mapper)
observable1
- the first observable value.observable2
- the second observable value.supplier
- a Supplier
whose result is returned if no value is present.mapper
- a non-interfering, stateless function to apply to the supplied values.@Nonnull public static DoubleBinding mapDoubles(@Nonnull ObservableValue<? extends Number> observable1, @Nonnull ObservableValue<? extends Number> observable2, @Nonnull Double defaultValue, @Nonnull BiFunction<? super Number,? super Number,Double> mapper)
observable1
- the first observable value.observable2
- the second observable value.defaultValue
- the value to be returned if there are no values present.mapper
- a non-interfering, stateless function to apply to the supplied values.@Nonnull public static DoubleBinding mapDoubles(@Nonnull ObservableValue<? extends Number> observable1, @Nonnull ObservableValue<? extends Number> observable2, @Nonnull Supplier<Double> supplier, @Nonnull BiFunction<? super Number,? super Number,Double> mapper)
observable1
- the first observable value.observable2
- the second observable value.supplier
- a Supplier
whose result is returned if no values are present.mapper
- a non-interfering, stateless function to apply to the supplied values.@Nonnull public static DoubleBinding mapDoubles(@Nonnull ObservableValue<? extends Number> observable1, @Nonnull ObservableValue<? extends Number> observable2, @Nonnull Double defaultValue, @Nonnull ObservableValue<BiFunction<? super Number,? super Number,Double>> mapper)
observable1
- the first observable value.observable2
- the second observable value.defaultValue
- the value to be returned if there is no value present.mapper
- a non-interfering, stateless function to apply to the supplied values.@Nonnull public static DoubleBinding mapDoubles(@Nonnull ObservableValue<? extends Number> observable1, @Nonnull ObservableValue<? extends Number> observable2, @Nonnull Supplier<Double> supplier, @Nonnull ObservableValue<BiFunction<? super Number,? super Number,Double>> mapper)
observable1
- the first observable value.observable2
- the second observable value.supplier
- a Supplier
whose result is returned if no value is present.mapper
- a non-interfering, stateless function to apply to the supplied values.@Nonnull public static <A,B,R> ObjectBinding<R> mapObjects(@Nonnull ObservableValue<A> observable1, @Nonnull ObservableValue<B> observable2, @Nullable R defaultValue, @Nonnull BiFunction<? super A,? super B,R> mapper)
observable1
- the first observable value.observable2
- the second observable value.defaultValue
- the value to be returned if there are no values present, may be null.mapper
- a non-interfering, stateless function to apply to the supplied values.@Nonnull public static <A,B,R> ObjectBinding<R> mapObjects(@Nonnull ObservableValue<A> observable1, @Nonnull ObservableValue<B> observable2, @Nonnull Supplier<R> supplier, @Nonnull BiFunction<? super A,? super B,R> mapper)
observable1
- the first observable value.observable2
- the second observable value.supplier
- a Supplier
whose result is returnedif no values are present.mapper
- a non-interfering, stateless function to apply to the supplied values.@Nonnull public static <A,B,R> ObjectBinding<R> mapObjects(@Nonnull ObservableValue<A> observable1, @Nonnull ObservableValue<B> observable2, @Nullable R defaultValue, @Nonnull ObservableValue<BiFunction<? super A,? super B,R>> mapper)
observable1
- the first observable value.observable2
- the second observable value.defaultValue
- the value to be returned if there is no value present, may be null.mapper
- a non-interfering, stateless function to apply to the supplied values.@Nonnull public static <A,B,R> ObjectBinding<R> mapObjects(@Nonnull ObservableValue<A> observable1, @Nonnull ObservableValue<B> observable2, @Nonnull Supplier<R> supplier, @Nonnull ObservableValue<BiFunction<? super A,? super B,R>> mapper)
observable1
- the first observable value.observable2
- the second observable value.supplier
- a Supplier
whose result is returned if no values are present.mapper
- a non-interfering, stateless function to apply to the supplied values.@Nonnull public static StringBinding mapStrings(@Nonnull ObservableValue<String> observable1, @Nonnull ObservableValue<String> observable2, @Nullable String defaultValue, @Nonnull BiFunction<String,String,String> mapper)
observable1
- the first observable value.observable2
- the second observable value.defaultValue
- the value to be returned if there are no values present.mapper
- a non-interfering, stateless function to apply to the supplied values.@Nonnull public static StringBinding mapStrings(@Nonnull ObservableValue<String> observable1, @Nonnull ObservableValue<String> observable2, @Nonnull Supplier<String> supplier, @Nonnull BiFunction<String,String,String> mapper)
observable1
- the first observable value.observable2
- the second observable value.supplier
- a Supplier
whose result is returned if no values are present.mapper
- a non-interfering, stateless function to apply to the supplied values.@Nonnull public static StringBinding mapStrings(@Nonnull ObservableValue<String> observable1, @Nonnull ObservableValue<String> observable2, @Nullable String defaultValue, @Nonnull ObservableValue<BiFunction<String,String,String>> mapper)
observable1
- the first observable value.observable2
- the second observable value.defaultValue
- the value to be returned if there is no value present, may be null.mapper
- a non-interfering, stateless function to apply to the supplied values.@Nonnull public static StringBinding mapStrings(@Nonnull ObservableValue<String> observable1, @Nonnull ObservableValue<String> observable2, @Nonnull Supplier<String> supplier, @Nonnull ObservableValue<BiFunction<String,String,String>> mapper)
observable1
- the first observable value.observable2
- the second observable value.supplier
- a Supplier
whose result is returned if no values are present.mapper
- a non-interfering, stateless function to apply to the supplied values.@Nonnull public static IntegerBinding mapInteger(@Nonnull ObservableValue<? extends Number> observable)
observable
- the source observable.@Nonnull public static IntegerBinding mapInteger(@Nonnull ObservableValue<? extends Number> observable, @Nullable Integer defaultValue)
observable
- the source observable.defaultValue
- the value to be returned if there is no value present, may be null.@Nonnull public static IntegerBinding mapInteger(@Nonnull ObservableValue<? extends Number> observable, @Nullable Supplier<Integer> supplier)
observable
- the source observable.supplier
- a Supplier
whose result is returned if no value is present.@Nonnull public static LongBinding mapLong(@Nonnull ObservableValue<? extends Number> observable)
observable
- the source observable.@Nonnull public static LongBinding mapLong(@Nonnull ObservableValue<? extends Number> observable, @Nullable Long defaultValue)
observable
- the source observable.defaultValue
- the value to be returned if there is no value present, may be null.@Nonnull public static LongBinding mapLong(@Nonnull ObservableValue<? extends Number> observable, @Nullable Supplier<Long> supplier)
observable
- the source observable.supplier
- a Supplier
whose result is returned if no value is present.@Nonnull public static FloatBinding mapFloat(@Nonnull ObservableValue<? extends Number> observable)
observable
- the source observable.@Nonnull public static FloatBinding mapFloat(@Nonnull ObservableValue<? extends Number> observable, @Nullable Float defaultValue)
observable
- the source observable.defaultValue
- the value to be returned if there is no value present, may be null.@Nonnull public static FloatBinding mapFloat(@Nonnull ObservableValue<? extends Number> observable, @Nullable Supplier<Float> supplier)
observable
- the source observable.supplier
- a Supplier
whose result is returned if no value is present.@Nonnull public static DoubleBinding mapDouble(@Nonnull ObservableValue<? extends Number> observable)
observable
- the source observable.@Nonnull public static DoubleBinding mapDouble(@Nonnull ObservableValue<? extends Number> observable, @Nullable Double defaultValue)
observable
- the source observable.defaultValue
- the value to be returned if there is no value present, may be null.@Nonnull public static DoubleBinding mapDouble(@Nonnull ObservableValue<? extends Number> observable, @Nullable Supplier<Double> supplier)
observable
- the source observable.supplier
- a Supplier
whose result is returned if no value is present.