org.plasma.sdo.access.provider.common
Class DataObjectPathDepthComparator

java.lang.Object
  extended by org.plasma.sdo.access.provider.common.DataObjectPathDepthComparator
All Implemented Interfaces:
Comparator<DataObject>

public class DataObjectPathDepthComparator
extends Object
implements Comparator<DataObject>

Compares its two data-objects for path depth relative to a data-graph root.


Constructor Summary
DataObjectPathDepthComparator()
           
 
Method Summary
 int compare(DataObject target, DataObject source)
          Returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.
 
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

DataObjectPathDepthComparator

public DataObjectPathDepthComparator()
Method Detail

compare

public int compare(DataObject target,
                   DataObject source)
Returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.

Specified by:
compare in interface Comparator<DataObject>


Copyright © 2014. All rights reserved.