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

net.sf.aguacate.model.FieldNumber Maven / Gradle / Ivy

package net.sf.aguacate.model;

public class FieldNumber> extends Field {

	private final T minValue;

	private final T maxValue;

	public FieldNumber(String name, FieldType type, boolean optional, T minValue, T maxValue) {
		super(name, type, optional);
		switch (type) {
		case INTEGER:
		case FLOAT:
			break;
		default:
			throw new IllegalArgumentException(type.toString());
		}
		this.minValue = minValue;
		this.maxValue = maxValue;
	}

	public T getMinValue() {
		return minValue;
	}

	public T getMaxValue() {
		return maxValue;
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy