public override int ComputeHash() { int result = 1; result = 31 * result + NumberValues.hash(_crs.Code); result = 31 * result + NumberValues.hash(_coordinate); return(result); }
public override bool Equals(Value other) { if (other is IntegralValue) { IntegralValue that = ( IntegralValue )other; return(this.LongValue() == that.LongValue()); } else if (other is FloatingPointValue) { FloatingPointValue that = ( FloatingPointValue )other; return(NumberValues.NumbersEqual(that.DoubleValue(), this.LongValue())); } else { return(false); } }
public override int CompareTo(FloatingPointArray other) { return(NumberValues.CompareIntegerVsFloatArrays(this, other)); }
public override int CompareTo(IntegralArray other) { return(NumberValues.CompareIntegerArrays(this, other)); }
public override int ComputeHash() { return(NumberValues.hash(_value)); }
internal override int UnsafeCompareTo(Value otherValue) { return(NumberValues.CompareBooleanArrays(this, ( BooleanArray )otherValue)); }
public override int CompareTo(FloatingPointValue other) { return(NumberValues.CompareLongAgainstDouble(LongValue(), other.DoubleValue())); }
public override int ComputeHash() { return(NumberValues.Hash(LongValue())); }
public override bool Equals(double x) { return(NumberValues.NumbersEqual(x, LongValue())); }
public override int CompareTo(IntegralValue other) { return(NumberValues.CompareDoubleAgainstLong(DoubleValue(), other.LongValue())); }
public override bool Equals(long x) { return(NumberValues.NumbersEqual(DoubleValue(), x)); }
public override int CompareTo(IntegralArray other) { return(-NumberValues.CompareIntegerVsFloatArrays(other, this)); }