ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/extra166y/CommonOps.java
(Generate patch)

Comparing jsr166/src/extra166y/CommonOps.java (file contents):
Revision 1.4 by jsr166, Tue Mar 15 19:47:02 2011 UTC vs.
Revision 1.5 by jsr166, Mon Dec 5 04:08:47 2011 UTC

# Line 521 | Line 521 | public class CommonOps {
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              };
# Line 533 | Line 533 | public class CommonOps {
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              };
# Line 545 | Line 545 | public class CommonOps {
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              };
# Line 557 | Line 557 | public class CommonOps {
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              };
# Line 711 | Line 711 | public class CommonOps {
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> {
# Line 725 | Line 725 | public class CommonOps {
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> {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines