org.devaki.nextobjects.ui.editor
Class DocPositionComparator

java.lang.Object
  extended byorg.devaki.nextobjects.ui.editor.DocPositionComparator
All Implemented Interfaces:
java.util.Comparator

class DocPositionComparator
extends java.lang.Object
implements java.util.Comparator

A comparator appropriate for use with Collections of DocPositions.


Constructor Summary
(package private) DocPositionComparator()
           
 
Method Summary
 int compare(java.lang.Object o1, java.lang.Object o2)
          Compare two DocPositions
 boolean equals(java.lang.Object obj)
          Comparator
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocPositionComparator

DocPositionComparator()
Method Detail

equals

public boolean equals(java.lang.Object obj)
Comparator

Specified by:
equals in interface java.util.Comparator
Returns:
true for DocPositionComparators, false otherwise.

compare

public int compare(java.lang.Object o1,
                   java.lang.Object o2)
Compare two DocPositions

Specified by:
compare in interface java.util.Comparator
Parameters:
o1 - first DocPosition
o2 - second DocPosition
Returns:
negative,0 or positive


Copyright © 2002-2004 devaki.org. All Rights Reserved.