@Test public void testEqual () { assertEquals ("true", mPositiveValue.equal (new IntegerValue (123)).toString ()); assertEquals ("true", mZeroValue.equal (new IntegerValue (0)).toString ()); assertEquals ("true", mNegativeValue.equal (new IntegerValue (-123)).toString ()); assertEquals ("false", mPositiveValue.equal (new IntegerValue (0)).toString ()); assertEquals ("false", mZeroValue.equal (new IntegerValue (1)).toString ()); assertEquals ("false", mNegativeValue.equal (new IntegerValue (0)).toString ()); }
@Override Value equal (Value v) { return new BooleanValue (intValue () == v.toIntegerValue ().intValue ()); }
IntegerValue extends Value { @Override Value equal (Value v) { return new BooleanValue (intValue () == v.toIntegerValue ().intValue ()); } }
IntegerValue extends Value { @Override Value equal (Value v) { return new BooleanValue (intValue () == v.toIntegerValue ().intValue ()); } IntegerValue(int value);   IntegerValue(String value); }
IntegerValue extends Value { @Override Value equal (Value v) { return new BooleanValue (intValue () == v.toIntegerValue ().intValue ()); } IntegerValue(int value);   IntegerValue(String value); @Override String toString(); }
IntegerValue extends Value { @Override Value equal (Value v) { return new BooleanValue (intValue () == v.toIntegerValue ().intValue ()); } IntegerValue(int value);   IntegerValue(String value); @Override String toString();  }