XBRLAPI

A Java API for XBRL


org.xbrlapi.impl
Class RelationshipOrderComparator

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

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

Constructor Detail

RelationshipOrderComparator

public RelationshipOrderComparator()
Method Detail

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)

Get Java XBRL API implementation at SourceForge.net.