jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1299731 - in /jackrabbit/sandbox/jackrabbit-microkernel/src/main/java/org/apache/jackrabbit/utils: RangeIteratorAdapter.java TypedRangeIterator.java
Date Mon, 12 Mar 2012 16:21:20 GMT
Author: mduerig
Date: Mon Mar 12 16:21:19 2012
New Revision: 1299731

URL: http://svn.apache.org/viewvc?rev=1299731&view=rev
Log:
Microkernel based prototype of JCR implementation (WIP)
- typed wrapper for raw RangeIterator 

Added:
    jackrabbit/sandbox/jackrabbit-microkernel/src/main/java/org/apache/jackrabbit/utils/TypedRangeIterator.java
Modified:
    jackrabbit/sandbox/jackrabbit-microkernel/src/main/java/org/apache/jackrabbit/utils/RangeIteratorAdapter.java

Modified: jackrabbit/sandbox/jackrabbit-microkernel/src/main/java/org/apache/jackrabbit/utils/RangeIteratorAdapter.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jackrabbit-microkernel/src/main/java/org/apache/jackrabbit/utils/RangeIteratorAdapter.java?rev=1299731&r1=1299730&r2=1299731&view=diff
==============================================================================
--- jackrabbit/sandbox/jackrabbit-microkernel/src/main/java/org/apache/jackrabbit/utils/RangeIteratorAdapter.java
(original)
+++ jackrabbit/sandbox/jackrabbit-microkernel/src/main/java/org/apache/jackrabbit/utils/RangeIteratorAdapter.java
Mon Mar 12 16:21:19 2012
@@ -27,7 +27,7 @@ import java.util.NoSuchElementException;
 /**
  * Adapter for turning a {@link java.util.Iterator} into a {@link javax.jcr.RangeIterator}.
  */
-public class RangeIteratorAdapter<T> implements RangeIterator {
+public class RangeIteratorAdapter<T> implements TypedRangeIterator<T> {
 
     /**
      * Static instance of an empty {@link RangeIterator}.

Added: jackrabbit/sandbox/jackrabbit-microkernel/src/main/java/org/apache/jackrabbit/utils/TypedRangeIterator.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jackrabbit-microkernel/src/main/java/org/apache/jackrabbit/utils/TypedRangeIterator.java?rev=1299731&view=auto
==============================================================================
--- jackrabbit/sandbox/jackrabbit-microkernel/src/main/java/org/apache/jackrabbit/utils/TypedRangeIterator.java
(added)
+++ jackrabbit/sandbox/jackrabbit-microkernel/src/main/java/org/apache/jackrabbit/utils/TypedRangeIterator.java
Mon Mar 12 16:21:19 2012
@@ -0,0 +1,11 @@
+package org.apache.jackrabbit.utils;
+
+import javax.jcr.RangeIterator;
+
+/**
+ * Type wrapper for raw {@code RangeIterator}
+ */
+public interface TypedRangeIterator<T> extends RangeIterator {
+    @Override
+    T next();
+}



Mime
View raw message