@Test public void equalsRpcContextAndName() { RpcRequest r1 = new RpcRequest("FOO"); RpcRequest r2 = new RpcRequest("BAR"); RpcRequest r3 = new RpcRequest("FOO/BAR"); RpcRequest r4 = new RpcRequest("BAZ/BAR"); assertTrue(r1.equals(r1)); assertFalse(r1.equals(r2)); assertFalse(r2.equals(r1)); assertFalse(r2.equals(r3)); assertFalse(r3.equals(r2)); assertFalse(r3.equals(r4)); assertFalse(r4.equals(r3)); }
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; RpcRequest that = (RpcRequest) o; return this.toString().equals(that.toString()); }
RpcRequest implements Serializable { @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; RpcRequest that = (RpcRequest) o; return this.toString().equals(that.toString()); } }
RpcRequest implements Serializable { @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; RpcRequest that = (RpcRequest) o; return this.toString().equals(that.toString()); } RpcRequest(String uri);  RpcRequest(String uri, Object... params);  RpcRequest(String uri, List params);  RpcRequest(RpcHost host, String credentials, RpcRequest request);  RpcRequest(RpcHost host, String credentials, String rpcContext, String rpcName);  RpcRequest(RpcHost host, String credentials, String rpcContext, String rpcName, Object... params);  RpcRequest(RpcHost host, String credentials, String rpcContext, String rpcName, List params); }
RpcRequest implements Serializable { @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; RpcRequest that = (RpcRequest) o; return this.toString().equals(that.toString()); } RpcRequest(String uri);  RpcRequest(String uri, Object... params);  RpcRequest(String uri, List params);  RpcRequest(RpcHost host, String credentials, RpcRequest request);  RpcRequest(RpcHost host, String credentials, String rpcContext, String rpcName);  RpcRequest(RpcHost host, String credentials, String rpcContext, String rpcName, Object... params);  RpcRequest(RpcHost host, String credentials, String rpcContext, String rpcName, List params); @Deprecated URI getURI(); String getUriString(); UriComponents getUriComponents(); RpcHost getHost(); @JsonSerialize(using = SanitizeCredentialsSerializer.class) String getCredentials(); String getRpcContext(); String getRpcName(); List<RpcParam> getParams(); String getRpcVersion(); void setRpcVersion(String rpcVersion); int getTimeout(); void setTimeout(int timeout); RpcRequest addParam(RpcParam rpcParam); RpcRequest addParam(String literal); RpcRequest addParam(Map m); RpcRequest addParam(List l); RpcRequest addParam(Object o); boolean isAbsolute(); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode(); }
RpcRequest implements Serializable { @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; RpcRequest that = (RpcRequest) o; return this.toString().equals(that.toString()); } RpcRequest(String uri);  RpcRequest(String uri, Object... params);  RpcRequest(String uri, List params);  RpcRequest(RpcHost host, String credentials, RpcRequest request);  RpcRequest(RpcHost host, String credentials, String rpcContext, String rpcName);  RpcRequest(RpcHost host, String credentials, String rpcContext, String rpcName, Object... params);  RpcRequest(RpcHost host, String credentials, String rpcContext, String rpcName, List params); @Deprecated URI getURI(); String getUriString(); UriComponents getUriComponents(); RpcHost getHost(); @JsonSerialize(using = SanitizeCredentialsSerializer.class) String getCredentials(); String getRpcContext(); String getRpcName(); List<RpcParam> getParams(); String getRpcVersion(); void setRpcVersion(String rpcVersion); int getTimeout(); void setTimeout(int timeout); RpcRequest addParam(RpcParam rpcParam); RpcRequest addParam(String literal); RpcRequest addParam(Map m); RpcRequest addParam(List l); RpcRequest addParam(Object o); boolean isAbsolute(); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode(); static final int MINIMUM_TIMEOUT; static final int DEFAULT_TIMEOUT; static final String DEFAULT_VERSION; }