Class IteratorHelper
java.lang.Object
org.javimmutable.collections.iterators.IteratorHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleaniteratorEquals(Iterator<?> a, Iterator<?> b) static intiteratorHashCode(Iterator<?> a) static StringiteratorToString(Iterator<?> iterator) static <T> Iterable<T> plainIterable(Iterable<T> values) Utility method, useful in unit tests, that essentially casts away actual type of an object so that Iterable version of an overload is triggered instead of more specific class.static <T> Iterator<T>
-
Constructor Details
-
IteratorHelper
public IteratorHelper()
-
-
Method Details
-
iteratorEquals
-
iteratorHashCode
-
iteratorToString
-
plainIterable
Utility method, useful in unit tests, that essentially casts away actual type of an object so that Iterable version of an overload is triggered instead of more specific class. -
reverse
-