Errai 3.0.1-SNAPSHOT

org.jboss.errai.jpa.rebind
Class ClassSorter

java.lang.Object
  extended by org.jboss.errai.jpa.rebind.ClassSorter

public class ClassSorter
extends Object


Constructor Summary
ClassSorter()
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassSorter

public ClassSorter()
Method Detail

supertypesFirst

public 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.

Parameters:
types - the list of metatypes to sort. This list will not be modified.
Returns:
A new list with the same elements as those in the given list, but possibly in a different order.

Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.