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

com.scudata.dm.comparator.BaseComparator 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 BaseComparator implements Comparator {
	private boolean throwExcept = true;
	
	public BaseComparator() {
	}
	
	public BaseComparator(boolean throwExcept) {
		this.throwExcept = throwExcept;
	}

	public int compare(Object o1, Object o2) {
		return Variant.compare(o1, o2, throwExcept);
	}
}