All Downloads are FREE. Search and download functionalities are using the official Maven repository.

graphql.kickstart.spring.error.ThrowableComparator Maven / Gradle / Ivy

There is a newer version: 15.1.0
Show newest version
package graphql.kickstart.spring.error;

import java.util.Comparator;

class ThrowableComparator implements Comparator> {

  @Override
  public int compare(Class t1, Class t2) {
    if (t1 == t2) {
      return 0;
    }
    return t1.isAssignableFrom(t2) ? 1 : -1;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy