Package org.conscrypt
Class NativeCryptoJni.ErrorComparator
- java.lang.Object
-
- org.conscrypt.NativeCryptoJni.ErrorComparator
-
- All Implemented Interfaces:
java.util.Comparator<NativeLibraryLoader.LoadResult>
- Enclosing class:
- NativeCryptoJni
private static final class NativeCryptoJni.ErrorComparator extends java.lang.Object implements java.util.Comparator<NativeLibraryLoader.LoadResult>
Sorts the errors in a list in descending order of value. After a list is sorted, the first element is the most important error.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static NativeCryptoJni.ErrorComparator
INSTANCE
-
Constructor Summary
Constructors Modifier Constructor Description private
ErrorComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(NativeLibraryLoader.LoadResult o1, NativeLibraryLoader.LoadResult o2)
-
-
-
Field Detail
-
INSTANCE
static final NativeCryptoJni.ErrorComparator INSTANCE
-
-
Method Detail
-
compare
public int compare(NativeLibraryLoader.LoadResult o1, NativeLibraryLoader.LoadResult o2)
- Specified by:
compare
in interfacejava.util.Comparator<NativeLibraryLoader.LoadResult>
-
-