521 |
|
*/ |
522 |
|
public static <T> DoubleOp compoundOp |
523 |
|
(final DoubleToObject<? extends T> first, |
524 |
< |
final ObjectToDouble<? super T> second) { |
524 |
> |
final ObjectToDouble<? super T> second) { |
525 |
|
return new DoubleOp() { |
526 |
|
public final double op(double t) { return second.op(first.op(t)); } |
527 |
|
}; |
533 |
|
*/ |
534 |
|
public static <T> LongToDouble compoundOp |
535 |
|
(final LongToObject<? extends T> first, |
536 |
< |
final ObjectToDouble<? super T> second) { |
536 |
> |
final ObjectToDouble<? super T> second) { |
537 |
|
return new LongToDouble() { |
538 |
|
public final double op(long t) { return second.op(first.op(t)); } |
539 |
|
}; |
545 |
|
*/ |
546 |
|
public static <T> DoubleToLong compoundOp |
547 |
|
(final DoubleToObject<? extends T> first, |
548 |
< |
final ObjectToLong<? super T> second) { |
548 |
> |
final ObjectToLong<? super T> second) { |
549 |
|
return new DoubleToLong() { |
550 |
|
public final long op(double t) { return second.op(first.op(t)); } |
551 |
|
}; |
557 |
|
*/ |
558 |
|
public static <T> LongOp compoundOp |
559 |
|
(final LongToObject<? extends T> first, |
560 |
< |
final ObjectToLong<? super T> second) { |
560 |
> |
final ObjectToLong<? super T> second) { |
561 |
|
return new LongOp() { |
562 |
|
public final long op(long t) { return second.op(first.op(t)); } |
563 |
|
}; |
711 |
|
/** |
712 |
|
* Returns a predicate evaluating to true if its argument is non-null |
713 |
|
*/ |
714 |
< |
public static Predicate<Object> isNonNullPredicate() { |
714 |
> |
public static Predicate<Object> isNonNullPredicate() { |
715 |
|
return IsNonNullPredicate.predicate; |
716 |
|
} |
717 |
|
static final class IsNonNullPredicate implements Predicate<Object> { |
725 |
|
/** |
726 |
|
* Returns a predicate evaluating to true if its argument is null |
727 |
|
*/ |
728 |
< |
public static Predicate<Object> isNullPredicate() { |
728 |
> |
public static Predicate<Object> isNullPredicate() { |
729 |
|
return IsNullPredicate.predicate; |
730 |
|
} |
731 |
|
static final class IsNullPredicate implements Predicate<Object> { |