jvx.util
Interface PuCompare_If
-
- All Known Implementing Classes:
- PuComparePdVectorsLexi, PuCompareStringsLexi
public interface PuCompare_IfInterface for comparing Objects.- Author:
- Ulrich Reitebuch
- Version:
- 24.04.13, 1.00 created (ur)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description intcompare(java.lang.Object object1, java.lang.Object object2)This method has to be implemented by a comparator.
-
-
-
Method Detail
-
compare
int compare(java.lang.Object object1, java.lang.Object object2)This method has to be implemented by a comparator.- Parameters:
object1- first object to be comparedobject2- second object to be compared- Returns:
- negative integer / zero / positive integer if object1 is 'smaller' / 'equal' / 'greater' compared to object 2.
-
-
"