org.mmbase.module.community
Class CompareMessages
java.lang.Object
|
+--org.mmbase.module.community.CompareMessages
- All Implemented Interfaces:
- CompareInterface
Deprecated. use mmbase.util.NodeComparator instead
- public class CompareMessages
- extends java.lang.Object
- implements CompareInterface
- Version:
- 5 Jan 2001
CompareMessages implements the CompareInterface used by SortedVector.
At forhand you've to specify on which fields the message nodes should be compared,
these fields may not have a null value.
- Author:
- Dirk-Jan Hoekstra
|
Field Summary |
static java.lang.String |
DOWN
Deprecated. |
static java.lang.String |
UP
Deprecated. |
|
Constructor Summary |
CompareMessages(java.util.Vector fields)
Deprecated. |
CompareMessages(java.util.Vector fields,
java.util.Vector sortDirs)
Deprecated. Fields are the fields on which the message nodes get compared. |
|
Method Summary |
int |
compare(java.lang.Object thisone,
java.lang.Object other)
Deprecated. The two message nodes will be compared using the compare function of the values out of the fields. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UP
public static final java.lang.String UP
- Deprecated.
DOWN
public static final java.lang.String DOWN
- Deprecated.
CompareMessages
public CompareMessages(java.util.Vector fields)
- Deprecated.
CompareMessages
public CompareMessages(java.util.Vector fields,
java.util.Vector sortDirs)
- Deprecated.
- Fields are the fields on which the message nodes get compared.
Use UP and DOWN in the sortDirs vector to specifie the sort directions.
compare
public int compare(java.lang.Object thisone,
java.lang.Object other)
- Deprecated.
- The two message nodes will be compared using the compare function of the values out of the fields.
Only String and Integer values can be used, in other cases it's assumed that the values are equal.
- Specified by:
compare in interface CompareInterface
MMBase 2001