Mercurial > hg > truffle
comparison truffle/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/util/Filterator.java @ 22157:dc83cc1f94f2
Using fully qualified imports
author | Jaroslav Tulach <jaroslav.tulach@oracle.com> |
---|---|
date | Wed, 16 Sep 2015 11:33:22 +0200 |
parents | 9c8c0937da41 |
children |
comparison
equal
deleted
inserted
replaced
22156:50056a161d7f | 22157:dc83cc1f94f2 |
---|---|
20 * or visit www.oracle.com if you need additional information or have any | 20 * or visit www.oracle.com if you need additional information or have any |
21 * questions. | 21 * questions. |
22 */ | 22 */ |
23 package com.oracle.truffle.dsl.processor.util; | 23 package com.oracle.truffle.dsl.processor.util; |
24 | 24 |
25 import java.util.*; | 25 import java.util.Iterator; |
26 import java.util.NoSuchElementException; | |
26 | 27 |
27 public class Filterator<T> implements Iterator<T> { | 28 public class Filterator<T> implements Iterator<T> { |
28 | 29 |
29 private final Predicate<T> includePredicate; | 30 private final Predicate<T> includePredicate; |
30 private final Iterator<T> elements; | 31 private final Iterator<T> elements; |