BEA Systems, Inc.

com.beasys.commerce.reasoning.rules.editor.jspbeans
Class RuleNameComparator

java.lang.Object
  |
  +--com.beasys.commerce.reasoning.rules.editor.jspbeans.RuleNameComparator

public class RuleNameComparator
extends java.lang.Object
implements java.util.Comparator

Compares two RuleName.


Method Summary
 int compare(java.lang.Object arg1, java.lang.Object arg2)
          Compares two Rules
static RuleNameComparator getInstance()
          A caching mechanism to improve the performance while instantiating RuleNameComparator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

compare

public int compare(java.lang.Object arg1,
                   java.lang.Object arg2)
Compares two Rules
Specified by:
compare in interface java.util.Comparator
Returns:
negative number if arg1 is less then arg2 positive number if arg1 is greater then arg2 zero if arg1 equals arg2

getInstance

public static RuleNameComparator getInstance()
A caching mechanism to improve the performance while instantiating RuleNameComparator
Returns:
a new instance if no instance exists or an existing instance

BEA Systems, Inc.

Copyright © 2000 BEA Systems, Inc. All Rights Reserved