|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.mmbase.util.MultiColCompare
MultiColCompare compares two Vectors on a given list of column numbers
| Constructor Summary | |
MultiColCompare(int[] posArray)
Creates a MultiColCompare. |
|
MultiColCompare(java.lang.String posList)
Constructor for comparing using multiple columns, where column position order is significant. |
|
| Method Summary | |
int |
compare(java.lang.Object thisOne,
java.lang.Object other)
Make the comparison between to Vectors over all colums specified in the postiton array. |
int |
compareCol(java.lang.Object thisOne,
java.lang.Object other,
int comparePosIndex)
Make the comparison between to Vectors over all columns specified in the postiton array, starting from a specified index in that array. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MultiColCompare(int[] posArray)
posArray - a list of column numberspublic MultiColCompare(java.lang.String posList)
posList - - a String with colpositions syntax "x:y:..." eg. "6:4".| Method Detail |
public int compareCol(java.lang.Object thisOne,
java.lang.Object other,
int comparePosIndex)
thisOne - the first object to compare. should be a Vector.other - the second object to compare. should be a Vector.
public int compare(java.lang.Object thisOne,
java.lang.Object other)
compare in interface CompareInterfacethisOne - the first object to compare. should be a Vector.other - the second object to compare. should be a Vector.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||