|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.lowagie.text.StringCompare
This class was used in the 1.1-version of iText (by Volker Richert). Paulo Soares suggested I should add it to the original library, so that in the future it would be easier to port it to the JDK1.1.x.
Constructor Summary | |
StringCompare()
|
Method Summary | |
int |
compare(Object o1,
Object o2)
Compares 2 objects. |
int |
compare(String s1,
String s2)
Compares 2 strings. |
boolean |
equals(Object o)
We need this function if we want to implement the Comparable interface, but we don't use this method. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StringCompare()
Method Detail |
public int compare(Object o1, Object o2)
compare
in interface Comparator
o1
- a first objecto2
- a second object
ClassCastException
- if the objects aren't Stringspublic int compare(String s1, String s2)
s1
- a first strings2
- a second string
public boolean equals(Object o)
equals
in interface Comparator
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |