edu.nyu.cs.pdsg.drbac
Class TopologicalSortComparator

java.lang.Object
  extended byedu.nyu.cs.pdsg.drbac.TopologicalSortComparator
All Implemented Interfaces:
java.util.Comparator

class TopologicalSortComparator
extends java.lang.Object
implements java.util.Comparator

This class sorts on the order of the subject's sort index.


Constructor Summary
(package private) TopologicalSortComparator()
           
 
Method Summary
 int compare(java.lang.Object o1, java.lang.Object o2)
          Compares two objects together and ranks them relative to eachother
 boolean equals(java.lang.Object obj)
          Compares two object together for equality
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TopologicalSortComparator

TopologicalSortComparator()
Method Detail

compare

public int compare(java.lang.Object o1,
                   java.lang.Object o2)
Compares two objects together and ranks them relative to eachother

Specified by:
compare in interface java.util.Comparator

equals

public boolean equals(java.lang.Object obj)
Compares two object together for equality

Specified by:
equals in interface java.util.Comparator


Copyright (c) 2002-2003 New York University RLAB