com.actelion.research.util.IntArrayComparator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of openchemlib Show documentation
Show all versions of openchemlib Show documentation
Open Source Chemistry Library
package com.actelion.research.util;
import java.io.Serializable;
import java.util.Comparator;
public class IntArrayComparator implements Comparator,Serializable {
static final long serialVersionUID = 0x20141022;
public int compare(int[] ia1, int[] ia2) {
if (ia1 == null)
return (ia2 == null) ? 0 : 1;
if (ia2 == null)
return -1;
for (int i=0; i ia1.length) ? -1 : 0;
}
}