Subversion Repository Public Repository

litesoft

Diff Revisions 49 vs 50 for /trunk/Java/core/Anywhere/src/org/litesoft/core/util/AbstractFilteringIterator.java

Diff revisions: vs.
  @@ -3,45 +3,6 @@
3 3
4 4 import java.util.*;
5 5
6 - // Copyright Status:
7 - //
8 - // All Software available from LiteSoft.org (including this file) is
9 - // hereby released into the public domain.
10 - //
11 - // It is free! As in, you may use it freely in both commercial and
12 - // non-commercial applications, bundle it with your software
13 - // distribution, include it on a CD-ROM, list the source code in a book,
14 - // mirror the documentation at your own web site, or use it in any other
15 - // way you see fit.
16 - //
17 - // NO Warranty!
18 - //
19 - // All software is provided "as is".
20 - //
21 - // There is ABSOLUTELY NO WARRANTY OF ANY KIND: not for the design, fitness
22 - // (for a particular purpose), level of errors (or lack thereof), or
23 - // applicability of this software. The entire risk as to the quality
24 - // and performance of this software is with you. Should this software
25 - // prove defective, you assume the cost of all necessary servicing, repair
26 - // or correction.
27 - //
28 - // In no event unless required by applicable law or agreed to in writing
29 - // will any party who created or may modify and/or redistribute this
30 - // software, be liable to you for damages, including any general,
31 - // special, incidental or consequential damages arising out of the use or
32 - // inability to use this software (including but not limited to loss of
33 - // data or data being rendered inaccurate or losses sustained by you or
34 - // third parties or a failure of this software to operate with any
35 - // other programs), even if such holder or other party has been advised
36 - // of the possibility of such damages.
37 - //
38 - // NOTE: Should you discover a bug, have a recogmendation for a change, wish
39 - // to submit modifications, or wish to add new classes/functionality,
40 - // please email them to:
41 - //
42 - // changes@litesoft.org
43 - //
44 -
45 6 /**
46 7 * This class's purpose is to be extended by a concrete Filtering Iterator
47 8 * that is wrapping/decorating another Iterator. The Filtering works
  @@ -96,6 +57,7 @@
96 57 * @see <a href="http://java.sun.com/j2se/1.3/docs/api/java/lang/Util/Iterator.html#hasNext()">java.util.Iterator#hasNext()</a>
97 58 * @see #keepThis(Object)
98 59 */
60 + @Override
99 61 public final boolean hasNext()
100 62 {
101 63 while ( !lookAheadValid && super.hasNext() )
  @@ -115,6 +77,7 @@
115 77 * @see <a href="http://java.sun.com/j2se/1.3/docs/api/java/lang/Util/Iterator.html#next()">java.util.Iterator#next()</a>
116 78 * @see #next()
117 79 */
80 + @Override
118 81 public final T next()
119 82 {
120 83 if ( !hasNext() )