package org.epics.css.dal.simple.impl;

import org.epics.css.dal.simple.MetaData;

public final class NumericMetaDataImpl implements MetaData {
	
	private final double alarmHigh;
	private final double alarmLow;
	private final double displayHigh;
	private final double displayLow;
	private final double warnHigh;
	private final double warnLow;
	private final int precision;
	private final String units;
	
	public NumericMetaDataImpl(double displayHigh, double displayLow, double warnHigh, double warnLow, double alarmHigh, double alarmLow, int precision, String units) {
		this.alarmHigh = alarmHigh;
		this.alarmLow = alarmLow;
		this.displayHigh = displayHigh;
		this.displayLow = displayLow;
		this.warnHigh = warnHigh;
		this.warnLow = warnLow;
		this.precision = precision;
		this.units = units;
	}

	public double getAlarmHigh() {
		return alarmHigh;
	}

	public double getAlarmLow() {
		return alarmLow;
	}

	public double getDisplayHigh() {
		return displayHigh;
	}

	public double getDisplayLow() {
		return displayLow;
	}

	public int getPrecision() {
		return precision;
	}

	public String getState(int state) {
		// default value
		return null;
	}

	public String[] getStates() {
		// default value
		return null;
	}

	public String getUnits() {
		return units;
	}

	public double getWarnHigh() {
		return warnHigh;
	}

	public double getWarnLow() {
		return warnLow;
	}

}

package org.epics.css.dal.simple.impl;

import org.epics.css.dal.simple.MetaData;

public final class NumericMetaDataImpl implements MetaData {
	
	private final double alarmHigh;
	private final double alarmLow;
	private final double displayHigh;
	private final double displayLow;
	private final double warnHigh;
	private final double warnLow;
	private final int precision;
	private final String units;
	
	public NumericMetaDataImpl(double displayLow, double displayHigh, double warnLow, double warnHigh, double alarmLow, double alarmHigh, int precision, String units) {
		this.alarmHigh = alarmHigh;
		this.alarmLow = alarmLow;
		this.displayHigh = displayHigh;
		this.displayLow = displayLow;
		this.warnHigh = warnHigh;
		this.warnLow = warnLow;
		this.precision = precision;
		this.units = units;
	}

	public double getAlarmHigh() {
		return alarmHigh;
	}

	public double getAlarmLow() {
		return alarmLow;
	}

	public double getDisplayHigh() {
		return displayHigh;
	}

	public double getDisplayLow() {
		return displayLow;
	}

	public int getPrecision() {
		return precision;
	}

	public String getState(int state) {
		// default value
		return null;
	}

	public String[] getStates() {
		// default value
		return null;
	}

	public String getUnits() {
		return units;
	}

	public double getWarnHigh() {
		return warnHigh;
	}

	public double getWarnLow() {
		return warnLow;
	}

}

Order of parameters rearranged.