
jnr.ffi.util.AnnotationNameComparator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jnr-unixsocket-nodep Show documentation
Show all versions of jnr-unixsocket-nodep Show documentation
com.github.jnr:jnr-unixsocket with orh.objectweb.asm shaded
package jnr.ffi.util;
import java.lang.annotation.Annotation;
import java.util.Comparator;
/**
* Sorts annotations according to name
*/
final class AnnotationNameComparator implements Comparator {
static final Comparator INSTANCE = new AnnotationNameComparator();
public static Comparator getInstance() {
return INSTANCE;
}
public int compare(Annotation o1, Annotation o2) {
return o1.annotationType().getName().compareTo(o2.annotationType().getName());
}
public boolean equals(Object other) {
return other != null && getClass().equals(other.getClass());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy