io.github.vmzakharov.ecdataframe.dataframe.compare.ObjectComparisonResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dataframe-ec Show documentation
Show all versions of dataframe-ec Show documentation
A tabular data structure based on the Eclipse Collections framework
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;
}
}