Class CustomClassComparator

java.lang.Object
org.jboss.weld.util.CustomClassComparator
All Implemented Interfaces:
Comparator<Class<?>>

public class CustomClassComparator extends Object implements Comparator<Class<?>>
This comparator sorts classes alphabetically based on Class.getName() with notable difference that all classes starting with java.* or javax.* come after all other classes. E.g. a set of these classes {javax.bar.Baz, java.something.Foo, bar.baz.Quax, mypackage.indeed.SomeBean} would be sorted in the following manner - {bar.baz.Quax, mypackage.indeed.SomeBean, java.something.Foo, javax.bar.Baz}.
  • Constructor Details

    • CustomClassComparator

      public CustomClassComparator()
  • Method Details