@Test public void testGreaterOrEqual () { assertEquals ("true", mNegativeValue.greaterOrEqual (mNegativeValue).toString ()); assertEquals ("false", mNegativeValue.greaterOrEqual (mZeroValue).toString ()); assertEquals ("true", mZeroValue.greaterOrEqual (mNegativeValue).toString ()); assertEquals ("true", mZeroValue.greaterOrEqual (mZeroValue).toString ()); assertEquals ("false", mZeroValue.greaterOrEqual (mPositiveValue).toString ()); assertEquals ("true", mPositiveValue.greaterOrEqual (mZeroValue).toString ()); assertEquals ("true", mPositiveValue.greaterOrEqual (mPositiveValue).toString ()); assertEquals ("true", mZeroValue.greaterOrEqual (mRealMinusOneValue).toString ()); assertEquals ("false", mZeroValue.greaterOrEqual (mRealOneValue).toString ()); }
@Override Value greaterOrEqual (Value v) { if (v instanceof IntegerValue) { return new BooleanValue (intValue () >= v.toIntegerValue ().intValue ()); } else { return toRealValue ().greaterOrEqual (v); } }
IntegerValue extends Value { @Override Value greaterOrEqual (Value v) { if (v instanceof IntegerValue) { return new BooleanValue (intValue () >= v.toIntegerValue ().intValue ()); } else { return toRealValue ().greaterOrEqual (v); } } }
IntegerValue extends Value { @Override Value greaterOrEqual (Value v) { if (v instanceof IntegerValue) { return new BooleanValue (intValue () >= v.toIntegerValue ().intValue ()); } else { return toRealValue ().greaterOrEqual (v); } } IntegerValue(int value);   IntegerValue(String value); }
IntegerValue extends Value { @Override Value greaterOrEqual (Value v) { if (v instanceof IntegerValue) { return new BooleanValue (intValue () >= v.toIntegerValue ().intValue ()); } else { return toRealValue ().greaterOrEqual (v); } } IntegerValue(int value);   IntegerValue(String value); @Override String toString(); }
IntegerValue extends Value { @Override Value greaterOrEqual (Value v) { if (v instanceof IntegerValue) { return new BooleanValue (intValue () >= v.toIntegerValue ().intValue ()); } else { return toRealValue ().greaterOrEqual (v); } } IntegerValue(int value);   IntegerValue(String value); @Override String toString();  }