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