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

com.lithium.ldn.starql.models.QlConstraintValueNumber Maven / Gradle / Ivy

There is a newer version: 2.13
Show newest version
package com.lithium.ldn.starql.models;

/**
 * A number value of a boolean constraint in the WHERE clause of a StarQL SELECT Statement.
 * 
 * @author Jake Scheps
 * @author David Esposito
 */
public class QlConstraintValueNumber extends QlConstraintValue {
	
	private final Number value;
	
	public QlConstraintValueNumber(Number value) {
		this.value = value;
	}
	
	/**
	 * 
	 * @return The number value of the boolean constraint. Could be an {@code int}, {@code long}, 
	 * {@code float} or {@code double}.
	 */
	public Number getValue() {
		return value;
	}
	
	@Override
	public String toString() {
		return value != null ? value.toString() : null;
	}

	@Override
	public Object get() {
		return getValue();
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy