changeset 7790:4a987d5dc161

Remove Predicate.xor for being insufficiently useful.
author mduigou
date Mon, 01 Apr 2013 15:11:10 -0700
parents 7225a758c172
children 2c96c1334dac
files src/share/classes/java/util/function/Predicate.java
diffstat 1 files changed, 0 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/java/util/function/Predicate.java	Mon Apr 01 14:52:26 2013 -0700
+++ b/src/share/classes/java/util/function/Predicate.java	Mon Apr 01 15:11:10 2013 -0700
@@ -86,17 +86,4 @@
         Objects.requireNonNull(p);
         return (t) -> test(t) || p.test(t);
     }
-
-    /**
-     * Returns a predicate which evaluates to {@code true} when the provided
-     * predicate evaluates to a different value than this predicate.
-     *
-     * @param p a predicate which will be logically-XORed with this predicate
-     * @return a predicate that performs a logical-XOR of two predicates.
-     * @throws NullPointerException if p is null
-     */
-    public default Predicate<T> xor(Predicate<? super T> p) {
-        Objects.requireNonNull(p);
-        return (t) -> test(t) ^ p.test(t);
-    }
 }