Class StringCompare
- java.lang.Object
-
- com.gitlab.pdftk_java.com.lowagie.text.StringCompare
-
- All Implemented Interfaces:
Comparator
public class StringCompare extends Object implements Comparator
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
Constructors Constructor Description StringCompare()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(Object o1, Object o2)Compares 2 objects.-
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, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Method Detail
-
compare
public int compare(Object o1, Object o2)
Compares 2 objects.- Specified by:
comparein interfaceComparator- Parameters:
o1- a first objecto2- a second object- Returns:
- a value
- Throws:
ClassCastException- if the objects aren't Strings
-
-