|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectproper.database.JoinComparator
public class JoinComparator
Compares Join instances based on their size member or the join string.
| Constructor Summary | |
|---|---|
JoinComparator()
initializes the comparator with the comparison based on the join string |
|
JoinComparator(boolean useSize)
initializes the comparator with the comparison based either on the join string (false) or on the size (true) |
|
| Method Summary | |
|---|---|
int |
compare(java.lang.Object o1,
java.lang.Object o2)
compares the given two joins, either on the size or on the join string |
boolean |
getUseSize()
returns whether the size is used for comparison or the name |
void |
setUseSize(boolean value)
sets whether to use the size for comparison or not |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Comparator |
|---|
equals |
| Constructor Detail |
|---|
public JoinComparator()
public JoinComparator(boolean useSize)
useSize - whether to use the size for comparison| Method Detail |
|---|
public void setUseSize(boolean value)
public boolean getUseSize()
public int compare(java.lang.Object o1,
java.lang.Object o2)
compare in interface java.util.Comparatoro1 - the first join to test witho2 - the second join to test withComparator.compare(java.lang.Object, java.lang.Object),
m_UseSize
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||