|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectbyucc.edif.NamedObjectCompare
public class NamedObjectCompare
Compares NamedObject objects.
NamedObject,
Serialized Form| Field Summary | |
|---|---|
static boolean |
CASE_SENSITIVE
Variable specifying whether string compares should be case sensitive or not. |
private static java.lang.String |
s1
The two strings initialized, and then used for comparison by methods in this class. |
private static java.lang.String |
s2
The two strings initialized, and then used for comparison by methods in this class. |
| Constructor Summary | |
|---|---|
NamedObjectCompare()
|
|
| Method Summary | |
|---|---|
int |
compare(java.lang.Object o1,
java.lang.Object o2)
Compares two Objects by their String name. |
static boolean |
equals(java.lang.Object o1,
java.lang.Object o2)
Compares two Objects by their String name. |
private static void |
getStrings(java.lang.Object o1,
java.lang.Object o2)
Initializes the two strings used for comparison by the methods in this class. |
static boolean |
startsWith(java.lang.Object o1,
java.lang.Object o2)
Compares string o2 with the beginning of o2. |
| 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 |
| Field Detail |
|---|
public static boolean CASE_SENSITIVE
private static java.lang.String s1
private static java.lang.String s2
| Constructor Detail |
|---|
public NamedObjectCompare()
| Method Detail |
|---|
public int compare(java.lang.Object o1,
java.lang.Object o2)
compare in interface java.util.Comparatoro1 - The first Object for comparisono2 - The second Object for comparison
public static boolean equals(java.lang.Object o1,
java.lang.Object o2)
o1 - The first Object for comparisono2 - The second Object for comparison
private static void getStrings(java.lang.Object o1,
java.lang.Object o2)
o1 - The first Object for comparisono2 - The second Object for comparison
public static boolean startsWith(java.lang.Object o1,
java.lang.Object o2)
o1 - The first Object for comparisono2 - The second Object for comparison
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||