01: /*
02: * Copyright 2006 Day Management AG, Switzerland. All rights reserved.
03: */
04: package javax.jcr.version;
05:
06: import javax.jcr.RangeIterator;
07:
08: /**
09: * Allows easy iteration through a list of <code>Version</code>s objects
10: * with <code>nextVersion</code> as well as a <code>skip</code> method inherited from
11: * <code>RangeIterator</code>.
12: *
13: */
14: public interface VersionIterator extends RangeIterator {
15:
16: /**
17: * Returns the next <code>Version</code> in the iteration.
18: *
19: * @return the next <code>Version</code> in the iteration.
20: * @throws java.util.NoSuchElementException if iteration has no more <code>Version</code>s.
21: */
22: public Version nextVersion();
23: }
|