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

com.openxc.units.Unit Maven / Gradle / Ivy

The newest version!
package com.openxc.units;

/**
 * The base interface for all values returned by a
 * {@link com.openxc.measurements.BaseMeasurement}.
 */
public abstract class Unit {
    public abstract Object getSerializedValue();

    @Override
    public boolean equals(Object obj) {
        if(this == obj) {
            return true;
        }

        if(obj == null) {
            return false;
        }

        if(getClass() != obj.getClass()) {
            return false;
        }
        return true;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy