jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r987580 - /jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/predicate/Predicate.java
Date Fri, 20 Aug 2010 17:13:47 GMT
Author: jukka
Date: Fri Aug 20 17:13:47 2010
New Revision: 987580

URL: http://svn.apache.org/viewvc?rev=987580&view=rev
Log:
JCR-2722: Add a filtered RangeIterator

Add Predicate.FALSE

Modified:
    jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/predicate/Predicate.java

Modified: jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/predicate/Predicate.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/predicate/Predicate.java?rev=987580&r1=987579&r2=987580&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/predicate/Predicate.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/predicate/Predicate.java
Fri Aug 20 17:13:47 2010
@@ -33,10 +33,19 @@ public interface Predicate {
     /**
      * Constant predicate that returns <code>true</code> for all objects.
      */
-    static final Predicate TRUE = new Predicate() {
+    Predicate TRUE = new Predicate() {
         public boolean evaluate(Object object) {
             return true;
         }
     };
 
+    /**
+     * Constant predicate that returns <code>false</code> for all objects.
+     */
+    Predicate FALSE = new Predicate() {
+        public boolean evaluate(Object object) {
+            return false;
+        }
+    };
+
 }



Mime
View raw message