All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.scudata.dm.comparator.ArrayComparator Maven / Gradle / Ivy

Go to download

SPL(Structured Process Language) A programming language specially for structured data computing.

There is a newer version: 20241126
Show newest version
package com.scudata.dm.comparator;

import java.util.Comparator;

import com.scudata.util.Variant;

/**
 * ????Ƚ?????null??????С????
 * @author WangXiaoJun
 *
 */
public class ArrayComparator implements Comparator {
	private final int len;
	
	public ArrayComparator(int len) {
		this.len = len;
	}

	public int compare(Object o1, Object o2) {
		return Variant.compareArrays((Object[])o1, (Object[])o2, len);
	}
}