Value { public boolean cmp(Value o) { return DeepEquals.deepEquals(this, o); } Value(Object obj); static Value fromRlpEncoded(byte[] data); Object asObj(); List<Object> asList(); int asInt(); long asLong(); BigInteger asBigInt(); String asString(); byte[] asBytes(); int[] asSlice(); Value get(int index); byte[] encode(); boolean cmp(Value o); boolean isList(); boolean isString(); boolean isInt(); boolean isLong(); boolean isBigInt(); boolean isBytes(); boolean isReadbleString(); boolean isHexString(); boolean isHashCode(); boolean isNull(); boolean isEmpty(); int length(); String toString(); int countBranchNodes();  }
@Test public void testCmp() { Value val1 = new Value("hello"); Value val2 = new Value("world"); assertFalse("Expected values not to be equal", val1.cmp(val2)); Value val3 = new Value("hello"); Value val4 = new Value("hello"); assertTrue("Expected values to be equal", val3.cmp(val4)); }