Example #1
0
        public override int ComputeHash()
        {
            int result = 1;

            result = 31 * result + NumberValues.hash(_crs.Code);
            result = 31 * result + NumberValues.hash(_coordinate);
            return(result);
        }
Example #2
0
 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);
     }
 }
Example #3
0
 public override int CompareTo(FloatingPointArray other)
 {
     return(NumberValues.CompareIntegerVsFloatArrays(this, other));
 }
Example #4
0
 public override int CompareTo(IntegralArray other)
 {
     return(NumberValues.CompareIntegerArrays(this, other));
 }
Example #5
0
 public override int ComputeHash()
 {
     return(NumberValues.hash(_value));
 }
Example #6
0
 internal override int UnsafeCompareTo(Value otherValue)
 {
     return(NumberValues.CompareBooleanArrays(this, ( BooleanArray )otherValue));
 }
Example #7
0
 public override int CompareTo(FloatingPointValue other)
 {
     return(NumberValues.CompareLongAgainstDouble(LongValue(), other.DoubleValue()));
 }
Example #8
0
 public override int ComputeHash()
 {
     return(NumberValues.Hash(LongValue()));
 }
Example #9
0
 public override bool Equals(double x)
 {
     return(NumberValues.NumbersEqual(x, LongValue()));
 }
Example #10
0
 public override int CompareTo(IntegralValue other)
 {
     return(NumberValues.CompareDoubleAgainstLong(DoubleValue(), other.LongValue()));
 }
Example #11
0
 public override bool Equals(long x)
 {
     return(NumberValues.NumbersEqual(DoubleValue(), x));
 }
Example #12
0
 public override int CompareTo(IntegralArray other)
 {
     return(-NumberValues.CompareIntegerVsFloatArrays(other, this));
 }