List of usage examples for java.util.function DoublePredicate test
boolean test(double value);
From source file:at.gridtec.lambda4j.function.bi.conversion.BiFloatToDoubleFunction.java
/** * Returns a composed {@link BiFloatPredicate} that first applies this function to its input, and then applies the * {@code after} predicate to the result. If evaluation of either operation throws an exception, it is relayed to * the caller of the composed operation. This method is just convenience, to provide the ability to transform this * primitive function to an operation returning {@code boolean}. * * @param after The predicate to apply after this function is applied * @return A composed {@code BiFloatPredicate} that first applies this function to its input, and then applies the * {@code after} predicate to the result. * @throws NullPointerException If given argument is {@code null} * @implSpec The input argument of this method is a able to return primitive values. In this case this is {@code * boolean}./*from w w w .jav a2 s. c o m*/ */ @Nonnull default BiFloatPredicate andThenToBoolean(@Nonnull final DoublePredicate after) { Objects.requireNonNull(after); return (value1, value2) -> after.test(applyAsDouble(value1, value2)); }
From source file:at.gridtec.lambda4j.function.bi.conversion.BiShortToDoubleFunction.java
/** * Returns a composed {@link BiShortPredicate} that first applies this function to its input, and then applies the * {@code after} predicate to the result. If evaluation of either operation throws an exception, it is relayed to * the caller of the composed operation. This method is just convenience, to provide the ability to transform this * primitive function to an operation returning {@code boolean}. * * @param after The predicate to apply after this function is applied * @return A composed {@code BiShortPredicate} that first applies this function to its input, and then applies the * {@code after} predicate to the result. * @throws NullPointerException If given argument is {@code null} * @implSpec The input argument of this method is a able to return primitive values. In this case this is {@code * boolean}./*from w ww. j a v a 2 s .com*/ */ @Nonnull default BiShortPredicate andThenToBoolean(@Nonnull final DoublePredicate after) { Objects.requireNonNull(after); return (value1, value2) -> after.test(applyAsDouble(value1, value2)); }
From source file:at.gridtec.lambda4j.function.bi.conversion.BiIntToDoubleFunction.java
/** * Returns a composed {@link BiIntPredicate} that first applies this function to its input, and then applies the * {@code after} predicate to the result. If evaluation of either operation throws an exception, it is relayed to * the caller of the composed operation. This method is just convenience, to provide the ability to transform this * primitive function to an operation returning {@code boolean}. * * @param after The predicate to apply after this function is applied * @return A composed {@code BiIntPredicate} that first applies this function to its input, and then applies the * {@code after} predicate to the result. * @throws NullPointerException If given argument is {@code null} * @implSpec The input argument of this method is a able to return primitive values. In this case this is {@code * boolean}.//from ww w . ja v a 2 s . co m */ @Nonnull default BiIntPredicate andThenToBoolean(@Nonnull final DoublePredicate after) { Objects.requireNonNull(after); return (value1, value2) -> after.test(applyAsDouble(value1, value2)); }
From source file:at.gridtec.lambda4j.function.bi.conversion.BiLongToDoubleFunction.java
/** * Returns a composed {@link BiLongPredicate} that first applies this function to its input, and then applies the * {@code after} predicate to the result. If evaluation of either operation throws an exception, it is relayed to * the caller of the composed operation. This method is just convenience, to provide the ability to transform this * primitive function to an operation returning {@code boolean}. * * @param after The predicate to apply after this function is applied * @return A composed {@code BiLongPredicate} that first applies this function to its input, and then applies the * {@code after} predicate to the result. * @throws NullPointerException If given argument is {@code null} * @implSpec The input argument of this method is a able to return primitive values. In this case this is {@code * boolean}./* ww w. j av a 2 s. c om*/ */ @Nonnull default BiLongPredicate andThenToBoolean(@Nonnull final DoublePredicate after) { Objects.requireNonNull(after); return (value1, value2) -> after.test(applyAsDouble(value1, value2)); }
From source file:at.gridtec.lambda4j.function.bi.obj.ObjDoubleToDoubleFunction.java
/** * Returns a composed {@link ObjDoublePredicate} that first applies this function to its input, and then applies the * {@code after} predicate to the result. If evaluation of either operation throws an exception, it is relayed to * the caller of the composed operation. This method is just convenience, to provide the ability to transform this * primitive function to an operation returning {@code boolean}. * * @param after The predicate to apply after this function is applied * @return A composed {@code ObjDoublePredicate} that first applies this function to its input, and then applies the * {@code after} predicate to the result. * @throws NullPointerException If given argument is {@code null} * @implSpec The input argument of this method is a able to return primitive values. In this case this is {@code * boolean}./*from w w w .java 2s. c o m*/ */ @Nonnull default ObjDoublePredicate<T> andThenToBoolean(@Nonnull final DoublePredicate after) { Objects.requireNonNull(after); return (t, value) -> after.test(applyAsDouble(t, value)); }
From source file:at.gridtec.lambda4j.function.bi.obj.ObjBooleanToDoubleFunction.java
/** * Returns a composed {@link ObjBooleanPredicate} that first applies this function to its input, and then applies * the {@code after} predicate to the result. If evaluation of either operation throws an exception, it is relayed * to the caller of the composed operation. This method is just convenience, to provide the ability to transform * this primitive function to an operation returning {@code boolean}. * * @param after The predicate to apply after this function is applied * @return A composed {@code ObjBooleanPredicate} that first applies this function to its input, and then applies * the {@code after} predicate to the result. * @throws NullPointerException If given argument is {@code null} * @implSpec The input argument of this method is a able to return primitive values. In this case this is {@code * boolean}./*from ww w . j a va 2s.co m*/ */ @Nonnull default ObjBooleanPredicate<T> andThenToBoolean(@Nonnull final DoublePredicate after) { Objects.requireNonNull(after); return (t, value) -> after.test(applyAsDouble(t, value)); }
From source file:at.gridtec.lambda4j.function.bi.obj.ObjByteToDoubleFunction.java
/** * Returns a composed {@link ObjBytePredicate} that first applies this function to its input, and then applies the * {@code after} predicate to the result. If evaluation of either operation throws an exception, it is relayed to * the caller of the composed operation. This method is just convenience, to provide the ability to transform this * primitive function to an operation returning {@code boolean}. * * @param after The predicate to apply after this function is applied * @return A composed {@code ObjBytePredicate} that first applies this function to its input, and then applies the * {@code after} predicate to the result. * @throws NullPointerException If given argument is {@code null} * @implSpec The input argument of this method is a able to return primitive values. In this case this is {@code * boolean}.//from ww w .j a v a 2 s .c o m */ @Nonnull default ObjBytePredicate<T> andThenToBoolean(@Nonnull final DoublePredicate after) { Objects.requireNonNull(after); return (t, value) -> after.test(applyAsDouble(t, value)); }
From source file:at.gridtec.lambda4j.function.bi.obj.ObjCharToDoubleFunction.java
/** * Returns a composed {@link ObjCharPredicate} that first applies this function to its input, and then applies the * {@code after} predicate to the result. If evaluation of either operation throws an exception, it is relayed to * the caller of the composed operation. This method is just convenience, to provide the ability to transform this * primitive function to an operation returning {@code boolean}. * * @param after The predicate to apply after this function is applied * @return A composed {@code ObjCharPredicate} that first applies this function to its input, and then applies the * {@code after} predicate to the result. * @throws NullPointerException If given argument is {@code null} * @implSpec The input argument of this method is a able to return primitive values. In this case this is {@code * boolean}./* ww w . jav a 2s. co m*/ */ @Nonnull default ObjCharPredicate<T> andThenToBoolean(@Nonnull final DoublePredicate after) { Objects.requireNonNull(after); return (t, value) -> after.test(applyAsDouble(t, value)); }
From source file:at.gridtec.lambda4j.function.bi.obj.ObjFloatToDoubleFunction.java
/** * Returns a composed {@link ObjFloatPredicate} that first applies this function to its input, and then applies the * {@code after} predicate to the result. If evaluation of either operation throws an exception, it is relayed to * the caller of the composed operation. This method is just convenience, to provide the ability to transform this * primitive function to an operation returning {@code boolean}. * * @param after The predicate to apply after this function is applied * @return A composed {@code ObjFloatPredicate} that first applies this function to its input, and then applies the * {@code after} predicate to the result. * @throws NullPointerException If given argument is {@code null} * @implSpec The input argument of this method is a able to return primitive values. In this case this is {@code * boolean}.//from w w w .j a va 2s . c o m */ @Nonnull default ObjFloatPredicate<T> andThenToBoolean(@Nonnull final DoublePredicate after) { Objects.requireNonNull(after); return (t, value) -> after.test(applyAsDouble(t, value)); }
From source file:at.gridtec.lambda4j.function.bi.obj.ObjShortToDoubleFunction.java
/** * Returns a composed {@link ObjShortPredicate} that first applies this function to its input, and then applies the * {@code after} predicate to the result. If evaluation of either operation throws an exception, it is relayed to * the caller of the composed operation. This method is just convenience, to provide the ability to transform this * primitive function to an operation returning {@code boolean}. * * @param after The predicate to apply after this function is applied * @return A composed {@code ObjShortPredicate} that first applies this function to its input, and then applies the * {@code after} predicate to the result. * @throws NullPointerException If given argument is {@code null} * @implSpec The input argument of this method is a able to return primitive values. In this case this is {@code * boolean}.// ww w . ja v a2 s . com */ @Nonnull default ObjShortPredicate<T> andThenToBoolean(@Nonnull final DoublePredicate after) { Objects.requireNonNull(after); return (t, value) -> after.test(applyAsDouble(t, value)); }