public enum Iterators2 extends Enum<Iterators2>
Modifier and Type | Method and Description |
---|---|
static <T> Iterator<T> |
deduplicateSorted(Iterator<? extends T> iterator,
Comparator<? super T> comparator)
Remove duplicated elements from an iterator over sorted content.
|
static <T> Iterator<T> |
mergeSorted(Iterable<Iterator<? extends T>> iterators,
Comparator<? super T> comparator,
boolean deduplicate)
Return a merged view over several iterators, optionally deduplicating equivalent entries.
|
static Iterators2 |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Iterators2[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static Iterators2[] values()
for (Iterators2 c : Iterators2.values()) System.out.println(c);
public static Iterators2 valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static <T> Iterator<T> deduplicateSorted(Iterator<? extends T> iterator, Comparator<? super T> comparator)
public static <T> Iterator<T> mergeSorted(Iterable<Iterator<? extends T>> iterators, Comparator<? super T> comparator, boolean deduplicate)
Copyright © 2009–2015. All rights reserved.