Class PartialOrder

java.lang.Object
org.aspectj.util.PartialOrder

public class PartialOrder extends Object
This class implements a partial order It includes routines for doing a topo-sort
  • Constructor Details

    • PartialOrder

      public PartialOrder()
  • Method Details

    • sort

      public static <T extends PartialOrder.PartialComparable> List<T> sort(List<T> objects)
      Parameters:
      objects - must all implement PartialComparable
      Returns:
      the same members as objects, but sorted according to their partial order. returns null if the objects are cyclical
    • main

      public static void main(String[] args)