com.sri.emo.dbobj
Class WizDecisionEntities.DecisionComparator

java.lang.Object
  extended by com.sri.emo.dbobj.WizDecisionEntities.DecisionComparator
All Implemented Interfaces:
Comparator
Enclosing class:
WizDecisionEntities

public static class WizDecisionEntities.DecisionComparator
extends Object
implements Comparator

Comparator that sorts on id.

Author:
Michael Rimov

Constructor Summary
WizDecisionEntities.DecisionComparator()
          Default constructor.
 
Method Summary
 int compare(Object o1, Object o2)
          Compares its two arguments for order.
 boolean equals(Object obj)
          Indicates whether some other object is "equal to" this Comparator.
 int hashCode()
          Returns a hash code value for the object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WizDecisionEntities.DecisionComparator

public WizDecisionEntities.DecisionComparator()
Default constructor.

Method Detail

compare

public int compare(Object o1,
                   Object o2)
Compares its two arguments for order.

Specified by:
compare in interface Comparator
Parameters:
o1 - the first object to be compared.
o2 - the second object to be compared.
Returns:
a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.

equals

public boolean equals(Object obj)
Indicates whether some other object is "equal to" this Comparator.

Specified by:
equals in interface Comparator
Overrides:
equals in class Object
Parameters:
obj - the reference object with which to compare.
Returns:
true only if the specified object is also a comparator and it imposes the same ordering as this comparator.

hashCode

public int hashCode()
Returns a hash code value for the object.

Overrides:
hashCode in class Object
Returns:
a hash code value for this object.


Copyright © 2004-2006 Codeguild, Inc.. All Rights Reserved.