org.xbrlapi.impl
Class RelationshipOrderComparator
java.lang.Object
org.xbrlapi.impl.RelationshipOrderComparator
- All Implemented Interfaces:
- Comparator<Relationship>
public class RelationshipOrderComparator
- extends Object
- implements Comparator<Relationship>
Facilitates sorting of relationships by arc order.
- Author:
- Geoffrey Shuetrim (geoff@galexy.net)
|
Method Summary |
int |
compare(Relationship relationship1,
Relationship relationship2)
Persisted relationships with lower order values come first in the ordering. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RelationshipOrderComparator
public RelationshipOrderComparator()
compare
public int compare(Relationship relationship1,
Relationship relationship2)
throws ClassCastException
- Persisted relationships with lower order values come first in the ordering.
- Specified by:
compare in interface Comparator<Relationship>
- Throws:
ClassCastException- See Also:
Comparator.compare(java.lang.Object, java.lang.Object)