|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.beasys.commerce.foundation.SmartComparator
@Deprecated public class SmartComparator
This is an implementation of the Comparator Interface that compares two objects. It is useful when building and searching maps and lists of Business Smart Components (BSC). As an example, all belongings, SmartKeys and SmartHandles are comparable. It uses the singleton pattern
Method Summary | |
---|---|
int |
compare(Object o1,
Object o2)
Deprecated See BEA Commerce product offering |
static SmartComparator |
getInstance()
Deprecated See BEA Commerce product offering |
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 |
Method Detail |
---|
public int compare(Object o1, Object o2)
String ComparableIf the objects neither String or Comparable, then it compares the String representation of the objects. Note: o1 and o2 must be have the same type.
compare
in interface Comparator
o1
- object 1 to compareo2
- object 2 to compare
RuntimeException
- if the two objects do have the same typepublic static SmartComparator getInstance()
|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |