RelationshipSorter

public class RelationshipSorter

The RelationshipSorter class provides method that sorts given entities list using dependency ordering. It means, that if entity A depends on entity B, B will be before A in sorted list. In case of any circular dependencies, entities contained in the cycle are considered equal, thus their mutual positions are unspecified.

Methods

sort

public void sort(List<Entity> entities)