org.planx.xmlstore.routing
Class Node.LastSeenComparator

java.lang.Object
  extended by org.planx.xmlstore.routing.Node.LastSeenComparator
All Implemented Interfaces:
Comparator
Enclosing class:
Node

public static class Node.LastSeenComparator
extends Object
implements Comparator

A LastSeenComparator is capable of comparing Node objects according to time last seen.


Constructor Summary
Node.LastSeenComparator()
           
 
Method Summary
 int compare(Object o1, Object o2)
          Compare two objects which must both be of type Node and determine which is seen last.
 
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

Node.LastSeenComparator

public Node.LastSeenComparator()
Method Detail

compare

public int compare(Object o1,
                   Object o2)
Compare two objects which must both be of type Node and determine which is seen last. If o1 is seen more recently than o2 a positive integer is returned, etc.

Specified by:
compare in interface Comparator


Copyright © 2010. All Rights Reserved.