public class ClassSorter extends Object
Constructor and Description |
---|
ClassSorter() |
Modifier and Type | Method and Description |
---|---|
static List<javax.persistence.metamodel.ManagedType<?>> |
supertypesFirst(Collection<? extends javax.persistence.metamodel.ManagedType<?>> types)
Sorts the given list of JPA ManagedType objects so that supertypes come before their subtypes in the list.
|
public static List<javax.persistence.metamodel.ManagedType<?>> supertypesFirst(Collection<? extends javax.persistence.metamodel.ManagedType<?>> types)
types
- the list of metatypes to sort. This list will not be modified.Copyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.