RpcParam { @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; RpcParam rpcParam = (RpcParam) o; if (type != rpcParam.type) return false; if (value != null ? !value.equals(rpcParam.value) : rpcParam.value != null) return false; return true; } RpcParam(String value);  RpcParam(String value, Type type);  RpcParam(Mult mult);  RpcParam(Mult mult, Type type); static RpcParam create(String s); static RpcParam create(Boolean b); static RpcParam create(Map m); static RpcParam create(List l); static RpcParam create(String[] l); static RpcParam create(Integer[] l); static RpcParam create(Long[] l); static RpcParam create(Boolean[] l); static RpcParam create(Float[] l); static RpcParam create(Double[] l); static RpcParam create(int[] l); static RpcParam create(long[] l); static RpcParam create(boolean[] l); static RpcParam create(float[] l); static RpcParam create(double[] l); static RpcParam create(JsonNode jsonNode); static RpcParam create(Object o); Mult getMult(); String getValue(); void setValue(String value); Type getType(); void setType(Type pType); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }
@Test public void testEquals() { RpcParam p1 = new RpcParam("foo"); RpcParam p2 = new RpcParam("foo"); RpcParam p3 = new RpcParam("bar"); assertTrue(p1.equals(p1)); assertTrue(p1.equals(p2)); assertTrue(p2.equals(p1)); assertFalse(p2.equals(p3)); assertFalse(p3.equals(p2)); }