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

io.github.vmzakharov.ecdataframe.dataframe.compare.ObjectComparisonResult Maven / Gradle / Ivy

There is a newer version: 1.0.0
Show newest version
package io.github.vmzakharov.ecdataframe.dataframe.compare;

abstract public class ObjectComparisonResult>
extends ComparisonResult
{
    private int delta;

    public ObjectComparisonResult(T thisObject, T thatObject)
    {
        this.dealWithNullsIfAny(thisObject == null, thatObject == null);

        if (this.noNulls())
        {
            this.delta(thisObject.compareTo(thatObject));
        }
    }

    @Override
    public long delta()
    {
        return this.delta;
    }

    @Override
    protected void delta(int newDelta)
    {
        this.delta = newDelta;
    }

    @Override
    public int compared()
    {
        return this.delta;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy