jvx.util
Class PuComparePdVectorsLexi
- java.lang.Object
-
- jvx.util.PuComparePdVectorsLexi
-
- All Implemented Interfaces:
- PuCompare_If
public class PuComparePdVectorsLexi extends java.lang.Object implements PuCompare_If
Comparator for PdVector objects, comparing by lexicographic order.- Author:
- Ulrich Reitebuch
- Version:
- 24.04.13, 1.00 created (ur)
-
-
Constructor Summary
Constructors Constructor and Description PuComparePdVectorsLexi()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intcompare(java.lang.Object object1, java.lang.Object object2)Compare PdVectors by lexicographic order.
-
-
-
Method Detail
-
compare
public int compare(java.lang.Object object1, java.lang.Object object2)Compare PdVectors by lexicographic order.- Specified by:
comparein interfacePuCompare_If- 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.
-
-
"