本文整理了Java中org.apache.ratis.thirdparty.com.google.protobuf.ByteString.equals()
方法的一些代码示例,展示了ByteString.equals()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ByteString.equals()
方法的具体详情如下:
包路径:org.apache.ratis.thirdparty.com.google.protobuf.ByteString
类名称:ByteString
方法名:equals
暂无
代码示例来源:origin: apache/incubator-ratis
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.ratis.proto.rmap.RMapProtos.Entry)) {
return super.equals(obj);
}
org.apache.ratis.proto.rmap.RMapProtos.Entry other = (org.apache.ratis.proto.rmap.RMapProtos.Entry) obj;
boolean result = true;
result = result && getKey()
.equals(other.getKey());
result = result && getValue()
.equals(other.getValue());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
代码示例来源:origin: apache/incubator-ratis
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.ratis.proto.rmap.RMapProtos.PutRequest)) {
return super.equals(obj);
}
org.apache.ratis.proto.rmap.RMapProtos.PutRequest other = (org.apache.ratis.proto.rmap.RMapProtos.PutRequest) obj;
boolean result = true;
result = result && getKey()
.equals(other.getKey());
result = result && getValue()
.equals(other.getValue());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
代码示例来源:origin: apache/incubator-ratis
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.ratis.proto.RaftProtos.RaftGroupIdProto)) {
return super.equals(obj);
}
org.apache.ratis.proto.RaftProtos.RaftGroupIdProto other = (org.apache.ratis.proto.RaftProtos.RaftGroupIdProto) obj;
boolean result = true;
result = result && getId()
.equals(other.getId());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
代码示例来源:origin: apache/incubator-ratis
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.ratis.proto.ExamplesProtos.DeleteRequestProto)) {
return super.equals(obj);
}
org.apache.ratis.proto.ExamplesProtos.DeleteRequestProto other = (org.apache.ratis.proto.ExamplesProtos.DeleteRequestProto) obj;
boolean result = true;
result = result && getPath()
.equals(other.getPath());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
代码示例来源:origin: apache/incubator-ratis
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.ratis.proto.rmap.RMapProtos.GetRequest)) {
return super.equals(obj);
}
org.apache.ratis.proto.rmap.RMapProtos.GetRequest other = (org.apache.ratis.proto.rmap.RMapProtos.GetRequest) obj;
boolean result = true;
result = result && getKey()
.equals(other.getKey());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
代码示例来源:origin: apache/incubator-ratis
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.ratis.proto.RaftProtos.ClientMessageEntryProto)) {
return super.equals(obj);
}
org.apache.ratis.proto.RaftProtos.ClientMessageEntryProto other = (org.apache.ratis.proto.RaftProtos.ClientMessageEntryProto) obj;
boolean result = true;
result = result && getContent()
.equals(other.getContent());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
代码示例来源:origin: apache/incubator-ratis
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.ratis.proto.ExamplesProtos.DeleteReplyProto)) {
return super.equals(obj);
}
org.apache.ratis.proto.ExamplesProtos.DeleteReplyProto other = (org.apache.ratis.proto.ExamplesProtos.DeleteReplyProto) obj;
boolean result = true;
result = result && getResolvedPath()
.equals(other.getResolvedPath());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
代码示例来源:origin: apache/incubator-ratis
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.ratis.proto.rmap.RMapProtos.GetResponse)) {
return super.equals(obj);
}
org.apache.ratis.proto.rmap.RMapProtos.GetResponse other = (org.apache.ratis.proto.rmap.RMapProtos.GetResponse) obj;
boolean result = true;
result = result && (getFound()
== other.getFound());
result = result && getKey()
.equals(other.getKey());
result = result && getValue()
.equals(other.getValue());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
代码示例来源:origin: apache/incubator-ratis
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.ratis.logservice.proto.MetaServiceProtos.RaftGroupProto)) {
return super.equals(obj);
}
org.apache.ratis.logservice.proto.MetaServiceProtos.RaftGroupProto other = (org.apache.ratis.logservice.proto.MetaServiceProtos.RaftGroupProto) obj;
boolean result = true;
result = result && getId()
.equals(other.getId());
result = result && getPeersList()
.equals(other.getPeersList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
代码示例来源:origin: apache/incubator-ratis
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.ratis.proto.ExamplesProtos.ReadReplyProto)) {
return super.equals(obj);
}
org.apache.ratis.proto.ExamplesProtos.ReadReplyProto other = (org.apache.ratis.proto.ExamplesProtos.ReadReplyProto) obj;
boolean result = true;
result = result && getResolvedPath()
.equals(other.getResolvedPath());
result = result && (getOffset()
== other.getOffset());
result = result && getData()
.equals(other.getData());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
代码示例来源:origin: apache/incubator-ratis
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.ratis.proto.RaftProtos.RaftPeerProto)) {
return super.equals(obj);
}
org.apache.ratis.proto.RaftProtos.RaftPeerProto other = (org.apache.ratis.proto.RaftProtos.RaftPeerProto) obj;
boolean result = true;
result = result && getId()
.equals(other.getId());
result = result && getAddress()
.equals(other.getAddress());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
代码示例来源:origin: apache/incubator-ratis
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.ratis.logservice.proto.MetaServiceProtos.RaftPeerProto)) {
return super.equals(obj);
}
org.apache.ratis.logservice.proto.MetaServiceProtos.RaftPeerProto other = (org.apache.ratis.logservice.proto.MetaServiceProtos.RaftPeerProto) obj;
boolean result = true;
result = result && getId()
.equals(other.getId());
result = result && getAddress()
.equals(other.getAddress());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
代码示例来源:origin: apache/incubator-ratis
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.ratis.proto.RaftProtos.StateMachineExceptionProto)) {
return super.equals(obj);
}
org.apache.ratis.proto.RaftProtos.StateMachineExceptionProto other = (org.apache.ratis.proto.RaftProtos.StateMachineExceptionProto) obj;
boolean result = true;
result = result && getExceptionClassName()
.equals(other.getExceptionClassName());
result = result && getErrorMsg()
.equals(other.getErrorMsg());
result = result && getStacktrace()
.equals(other.getStacktrace());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
代码示例来源:origin: apache/incubator-ratis
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.ratis.logservice.proto.MetaServiceProtos.MetaServiceExceptionProto)) {
return super.equals(obj);
}
org.apache.ratis.logservice.proto.MetaServiceProtos.MetaServiceExceptionProto other = (org.apache.ratis.logservice.proto.MetaServiceProtos.MetaServiceExceptionProto) obj;
boolean result = true;
result = result && getExceptionClassName()
.equals(other.getExceptionClassName());
result = result && getErrorMsg()
.equals(other.getErrorMsg());
result = result && getStacktrace()
.equals(other.getStacktrace());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
代码示例来源:origin: hortonworks/ratis
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.ratis.logservice.proto.LogServiceProtos.LogServiceException)) {
return super.equals(obj);
}
org.apache.ratis.logservice.proto.LogServiceProtos.LogServiceException other = (org.apache.ratis.logservice.proto.LogServiceProtos.LogServiceException) obj;
boolean result = true;
result = result && getExceptionClassName()
.equals(other.getExceptionClassName());
result = result && getErrorMsg()
.equals(other.getErrorMsg());
result = result && getStacktrace()
.equals(other.getStacktrace());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
代码示例来源:origin: apache/incubator-ratis
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.ratis.proto.RaftProtos.StateMachineEntryProto)) {
return super.equals(obj);
}
org.apache.ratis.proto.RaftProtos.StateMachineEntryProto other = (org.apache.ratis.proto.RaftProtos.StateMachineEntryProto) obj;
boolean result = true;
result = result && getStateMachineData()
.equals(other.getStateMachineData());
result = result && (getLogEntryProtoSerializedSize()
== other.getLogEntryProtoSerializedSize());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
代码示例来源:origin: apache/incubator-ratis
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.ratis.proto.ExamplesProtos.WriteReplyProto)) {
return super.equals(obj);
}
org.apache.ratis.proto.ExamplesProtos.WriteReplyProto other = (org.apache.ratis.proto.ExamplesProtos.WriteReplyProto) obj;
boolean result = true;
result = result && getResolvedPath()
.equals(other.getResolvedPath());
result = result && (getOffset()
== other.getOffset());
result = result && (getLength()
== other.getLength());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
代码示例来源:origin: apache/incubator-ratis
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.ratis.proto.ExamplesProtos.ReadRequestProto)) {
return super.equals(obj);
}
org.apache.ratis.proto.ExamplesProtos.ReadRequestProto other = (org.apache.ratis.proto.ExamplesProtos.ReadRequestProto) obj;
boolean result = true;
result = result && getPath()
.equals(other.getPath());
result = result && (getOffset()
== other.getOffset());
result = result && (getLength()
== other.getLength());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
代码示例来源:origin: apache/incubator-ratis
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.ratis.proto.ExamplesProtos.WriteRequestProto)) {
return super.equals(obj);
}
org.apache.ratis.proto.ExamplesProtos.WriteRequestProto other = (org.apache.ratis.proto.ExamplesProtos.WriteRequestProto) obj;
boolean result = true;
result = result && (hasHeader() == other.hasHeader());
if (hasHeader()) {
result = result && getHeader()
.equals(other.getHeader());
}
result = result && getData()
.equals(other.getData());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
代码示例来源:origin: apache/incubator-ratis
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.ratis.proto.netty.NettyProtos.RaftNettyExceptionReplyProto)) {
return super.equals(obj);
}
org.apache.ratis.proto.netty.NettyProtos.RaftNettyExceptionReplyProto other = (org.apache.ratis.proto.netty.NettyProtos.RaftNettyExceptionReplyProto) obj;
boolean result = true;
result = result && (hasRpcReply() == other.hasRpcReply());
if (hasRpcReply()) {
result = result && getRpcReply()
.equals(other.getRpcReply());
}
result = result && getException()
.equals(other.getException());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
内容来源于网络,如有侵权,请联系作者删除!