XBRLAPI

A Java API for XBRL


org.xbrlapi.impl
Class RelationshipPriorityComparator

java.lang.Object
  extended by 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)

Constructor Summary
RelationshipPriorityComparator()
           
 
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
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

RelationshipPriorityComparator

public RelationshipPriorityComparator()
Method Detail

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)

Get Java XBRL API implementation at SourceForge.net.