Class IteratorHelper
java.lang.Object
org.javimmutable.collections.iterators.IteratorHelper
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
iteratorEquals
(Iterator<?> a, Iterator<?> b) static int
iteratorHashCode
(Iterator<?> a) static String
iteratorToString
(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
-