T - the type of objects that may be compared by this comparator@FunctionalInterface public interface IOComparator<T>
Comparator but throws IOException.Comparator| Modifier and Type | Method and Description |
|---|---|
default Comparator<T> |
asComparator()
|
int |
compare(T o1,
T o2)
Like
Comparator.compare(Object, Object) but throws IOException. |
default Comparator<T> asComparator()
int compare(T o1, T o2) throws IOException
Comparator.compare(Object, Object) but throws IOException.o1 - the first object to be compared.o2 - the second object to be compared.NullPointerException - if an argument is null and this comparator does not permit null argumentsClassCastException - if the arguments' types prevent them from being compared by this comparator.IOException - if an I/O error occurs.Copyright © 2002–2023 The Apache Software Foundation. All rights reserved.