Class FilteredIterator<T>
java.lang.Object
io.confluent.kafka.schemaregistry.storage.FilteredIterator<T>
- All Implemented Interfaces:
CloseableIterator<T>,Closeable,AutoCloseable,Iterator<T>
-
Method Summary
Modifier and TypeMethodDescriptionfinal voidclose()static <T> CloseableIterator<T>filter(CloseableIterator<T> fromIterator, com.google.common.base.Predicate<? super T> predicate) final booleanhasNext()final Tnext()final voidremove()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Method Details
-
filter
public static <T> CloseableIterator<T> filter(CloseableIterator<T> fromIterator, com.google.common.base.Predicate<? super T> predicate) -
hasNext
public final boolean hasNext() -
next
-
remove
public final void remove() -
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceCloseableIterator<T>
-