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

net.sf.xmlform.expression.NullValue Maven / Gradle / Ivy

There is a newer version: 3.2.0
Show newest version
package net.sf.xmlform.expression;

import net.sf.xmlform.expression.impl.AbstractValue;

/**
 * @author Liu Zhikun
 */

public class NullValue extends AbstractValue implements Value {
	static public NullValue NULL_VALUE=new NullValue();
	
	private NullValue(){
		
	}
	
	public int compareTo(Value obj) {
		if(obj==null)
			return 0;
		if(obj instanceof NullValue)
			return 0;
		return -1;
	}

	public Object getValue() {
		return null;
	}
	
	public String toString() {
		return "";
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy