Class ReflectionSafeIterator<T>
- java.lang.Object
-
- net.shibboleth.utilities.java.support.collection.ReflectionSafeIterator<T>
-
- Type Parameters:
T- iterator type
- All Implemented Interfaces:
Iterator<T>
public class ReflectionSafeIterator<T> extends Object implements Iterator<T>
Wrapper class for delegating publically toIteratorimplementations that may themselves be private.This addresses bugs in Java that result from old implementations of collection classes that were never cleaned up to work properly in Java 17+ after access to JDK internals was clossed off.
- Since:
- 8.2.0
-
-
Constructor Summary
Constructors Constructor Description ReflectionSafeIterator(Iterator<T> i)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()Tnext()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
-