org.xbrlapi.impl
Class RelationshipPriorityComparator
java.lang.Object
org.xbrlapi.impl.RelationshipPriorityComparator
- All Implemented Interfaces:
- Comparator<Relationship>
public class RelationshipPriorityComparator
- 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 priority values come later in the ordering. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RelationshipPriorityComparator
public RelationshipPriorityComparator()
compare
public int compare(Relationship relationship1,
Relationship relationship2)
throws ClassCastException
- Persisted relationships with lower priority values come later in the ordering.
- Specified by:
compare in interface Comparator<Relationship>
- Throws:
ClassCastException- See Also:
Comparator.compare(java.lang.Object, java.lang.Object)