java.nio.ByteBuffer.equals()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(12.6k)|赞(0)|评价(0)|浏览(157)

本文整理了Java中java.nio.ByteBuffer.equals()方法的一些代码示例,展示了ByteBuffer.equals()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ByteBuffer.equals()方法的具体详情如下:
包路径:java.nio.ByteBuffer
类名称:ByteBuffer
方法名:equals

ByteBuffer.equals介绍

[英]Checks whether this byte buffer is equal to another object.

If other is not a byte buffer then false is returned. Two byte buffers are equal if and only if their remaining bytes are exactly the same. Position, limit, capacity and mark are not considered.
[中]

代码示例

代码示例来源:origin: kaaproject/kaa

return false;
if (epsConfigurationHash != null ? !epsConfigurationHash.equals(that.epsConfigurationHash) : that.epsConfigurationHash != null) {
 return false;
  ? !endpointKeyHash.equals(that.endpointKeyHash)
  : that.endpointKeyHash != null) {
 return false;
  ? !endpointProfileKey.equals(that.endpointProfileKey)
  : that.endpointProfileKey != null) {
 return false;
  ? !profileHash.equals(that.profileHash)
  : that.profileHash != null) {
 return false;
  ? !configurationHash.equals(that.configurationHash)
  : that.configurationHash != null) {
 return false;
  ? !userConfigurationHash.equals(that.userConfigurationHash)
  : that.userConfigurationHash != null) {
 return false;
  ? !topicHash.equals(that.topicHash)
  : that.topicHash != null) {
 return false;

代码示例来源:origin: apache/flume

public boolean equals(ThriftFlumeEvent that) {
 if (that == null)
  return false;
 boolean this_present_headers = true && this.isSetHeaders();
 boolean that_present_headers = true && that.isSetHeaders();
 if (this_present_headers || that_present_headers) {
  if (!(this_present_headers && that_present_headers))
   return false;
  if (!this.headers.equals(that.headers))
   return false;
 }
 boolean this_present_body = true && this.isSetBody();
 boolean that_present_body = true && that.isSetBody();
 if (this_present_body || that_present_body) {
  if (!(this_present_body && that_present_body))
   return false;
  if (!this.body.equals(that.body))
   return false;
 }
 return true;
}

代码示例来源:origin: apache/hbase

if (!(this_present_row && that_present_row))
 return false;
if (!this.row.equals(that.row))
 return false;
if (!(this_present_columns && that_present_columns))
 return false;
if (!this.columns.equals(that.columns))
 return false;
if (!(this_present_sortedColumns && that_present_sortedColumns))
 return false;
if (!this.sortedColumns.equals(that.sortedColumns))
 return false;

代码示例来源:origin: apache/hive

public boolean equals(TI32Column that) {
 if (that == null)
  return false;
 boolean this_present_values = true && this.isSetValues();
 boolean that_present_values = true && that.isSetValues();
 if (this_present_values || that_present_values) {
  if (!(this_present_values && that_present_values))
   return false;
  if (!this.values.equals(that.values))
   return false;
 }
 boolean this_present_nulls = true && this.isSetNulls();
 boolean that_present_nulls = true && that.isSetNulls();
 if (this_present_nulls || that_present_nulls) {
  if (!(this_present_nulls && that_present_nulls))
   return false;
  if (!this.nulls.equals(that.nulls))
   return false;
 }
 return true;
}

代码示例来源:origin: aws/aws-sdk-java

@Override
public boolean equals(Object obj) {
  if (this == obj)
    return true;
  if (obj == null)
    return false;
  if (obj instanceof DecryptRequest == false)
    return false;
  DecryptRequest other = (DecryptRequest) obj;
  if (other.getCiphertextBlob() == null ^ this.getCiphertextBlob() == null)
    return false;
  if (other.getCiphertextBlob() != null && other.getCiphertextBlob().equals(this.getCiphertextBlob()) == false)
    return false;
  if (other.getEncryptionContext() == null ^ this.getEncryptionContext() == null)
    return false;
  if (other.getEncryptionContext() != null && other.getEncryptionContext().equals(this.getEncryptionContext()) == false)
    return false;
  if (other.getGrantTokens() == null ^ this.getGrantTokens() == null)
    return false;
  if (other.getGrantTokens() != null && other.getGrantTokens().equals(this.getGrantTokens()) == false)
    return false;
  return true;
}

代码示例来源:origin: apache/flume

if (!(this_present_body && that_present_body))
 return false;
if (!this.body.equals(that.body))
 return false;
if (!(this_present_fields && that_present_fields))
 return false;
if (!this.fields.equals(that.fields))
 return false;

代码示例来源:origin: apache/hive

public boolean equals(TBinaryColumn that) {
 if (that == null)
  return false;
 boolean this_present_values = true && this.isSetValues();
 boolean that_present_values = true && that.isSetValues();
 if (this_present_values || that_present_values) {
  if (!(this_present_values && that_present_values))
   return false;
  if (!this.values.equals(that.values))
   return false;
 }
 boolean this_present_nulls = true && this.isSetNulls();
 boolean that_present_nulls = true && that.isSetNulls();
 if (this_present_nulls || that_present_nulls) {
  if (!(this_present_nulls && that_present_nulls))
   return false;
  if (!this.nulls.equals(that.nulls))
   return false;
 }
 return true;
}

代码示例来源:origin: aws/aws-sdk-java

@Override
public boolean equals(Object obj) {
  if (this == obj)
    return true;
  if (obj == null)
    return false;
  if (obj instanceof EncryptRequest == false)
    return false;
  EncryptRequest other = (EncryptRequest) obj;
  if (other.getKeyId() == null ^ this.getKeyId() == null)
    return false;
  if (other.getKeyId() != null && other.getKeyId().equals(this.getKeyId()) == false)
    return false;
  if (other.getPlaintext() == null ^ this.getPlaintext() == null)
    return false;
  if (other.getPlaintext() != null && other.getPlaintext().equals(this.getPlaintext()) == false)
    return false;
  if (other.getEncryptionContext() == null ^ this.getEncryptionContext() == null)
    return false;
  if (other.getEncryptionContext() != null && other.getEncryptionContext().equals(this.getEncryptionContext()) == false)
    return false;
  if (other.getGrantTokens() == null ^ this.getGrantTokens() == null)
    return false;
  if (other.getGrantTokens() != null && other.getGrantTokens().equals(this.getGrantTokens()) == false)
    return false;
  return true;
}

代码示例来源:origin: aws/aws-sdk-java

@Override
public boolean equals(Object obj) {
  if (this == obj)
    return true;
  if (obj == null)
    return false;
  if (obj instanceof ImportRestApiRequest == false)
    return false;
  ImportRestApiRequest other = (ImportRestApiRequest) obj;
  if (other.getFailOnWarnings() == null ^ this.getFailOnWarnings() == null)
    return false;
  if (other.getFailOnWarnings() != null && other.getFailOnWarnings().equals(this.getFailOnWarnings()) == false)
    return false;
  if (other.getParameters() == null ^ this.getParameters() == null)
    return false;
  if (other.getParameters() != null && other.getParameters().equals(this.getParameters()) == false)
    return false;
  if (other.getBody() == null ^ this.getBody() == null)
    return false;
  if (other.getBody() != null && other.getBody().equals(this.getBody()) == false)
    return false;
  return true;
}

代码示例来源:origin: apache/hive

public boolean equals(TByteColumn that) {
 if (that == null)
  return false;
 boolean this_present_values = true && this.isSetValues();
 boolean that_present_values = true && that.isSetValues();
 if (this_present_values || that_present_values) {
  if (!(this_present_values && that_present_values))
   return false;
  if (!this.values.equals(that.values))
   return false;
 }
 boolean this_present_nulls = true && this.isSetNulls();
 boolean that_present_nulls = true && that.isSetNulls();
 if (this_present_nulls || that_present_nulls) {
  if (!(this_present_nulls && that_present_nulls))
   return false;
  if (!this.nulls.equals(that.nulls))
   return false;
 }
 return true;
}

代码示例来源:origin: line/armeria

public boolean equals(TRowResult that) {
 if (that == null)
  return false;
 boolean this_present_row = true && this.isSetRow();
 boolean that_present_row = true && that.isSetRow();
 if (this_present_row || that_present_row) {
  if (!(this_present_row && that_present_row))
   return false;
  if (!this.row.equals(that.row))
   return false;
 }
 boolean this_present_columns = true && this.isSetColumns();
 boolean that_present_columns = true && that.isSetColumns();
 if (this_present_columns || that_present_columns) {
  if (!(this_present_columns && that_present_columns))
   return false;
  if (!this.columns.equals(that.columns))
   return false;
 }
 boolean this_present_sortedColumns = true && this.isSetSortedColumns();
 boolean that_present_sortedColumns = true && that.isSetSortedColumns();
 if (this_present_sortedColumns || that_present_sortedColumns) {
  if (!(this_present_sortedColumns && that_present_sortedColumns))
   return false;
  if (!this.sortedColumns.equals(that.sortedColumns))
   return false;
 }
 return true;
}

代码示例来源:origin: aws/aws-sdk-java

if (other.getParameters() == null ^ this.getParameters() == null)
  return false;
if (other.getParameters() != null && other.getParameters().equals(this.getParameters()) == false)
  return false;
if (other.getBody() == null ^ this.getBody() == null)
  return false;
if (other.getBody() != null && other.getBody().equals(this.getBody()) == false)
  return false;
return true;

代码示例来源:origin: apache/hive

public boolean equals(TStringColumn that) {
 if (that == null)
  return false;
 boolean this_present_values = true && this.isSetValues();
 boolean that_present_values = true && that.isSetValues();
 if (this_present_values || that_present_values) {
  if (!(this_present_values && that_present_values))
   return false;
  if (!this.values.equals(that.values))
   return false;
 }
 boolean this_present_nulls = true && this.isSetNulls();
 boolean that_present_nulls = true && that.isSetNulls();
 if (this_present_nulls || that_present_nulls) {
  if (!(this_present_nulls && that_present_nulls))
   return false;
  if (!this.nulls.equals(that.nulls))
   return false;
 }
 return true;
}

代码示例来源:origin: line/armeria

if (!(this_present_row && that_present_row))
 return false;
if (!this.row.equals(that.row))
 return false;
if (!(this_present_columns && that_present_columns))
 return false;
if (!this.columns.equals(that.columns))
 return false;
if (!(this_present_sortedColumns && that_present_sortedColumns))
 return false;
if (!this.sortedColumns.equals(that.sortedColumns))
 return false;

代码示例来源:origin: line/armeria

if (!(this_present_name && that_present_name))
 return false;
if (!this.name.equals(that.name))
 return false;
if (!(this_present_index_options && that_present_index_options))
 return false;
if (!this.index_options.equals(that.index_options))
 return false;

代码示例来源:origin: apache/hive

public boolean equals(TI64Column that) {
 if (that == null)
  return false;
 boolean this_present_values = true && this.isSetValues();
 boolean that_present_values = true && that.isSetValues();
 if (this_present_values || that_present_values) {
  if (!(this_present_values && that_present_values))
   return false;
  if (!this.values.equals(that.values))
   return false;
 }
 boolean this_present_nulls = true && this.isSetNulls();
 boolean that_present_nulls = true && that.isSetNulls();
 if (this_present_nulls || that_present_nulls) {
  if (!(this_present_nulls && that_present_nulls))
   return false;
  if (!this.nulls.equals(that.nulls))
   return false;
 }
 return true;
}

代码示例来源:origin: aws/aws-sdk-java

if (other.getCiphertextBlob() == null ^ this.getCiphertextBlob() == null)
  return false;
if (other.getCiphertextBlob() != null && other.getCiphertextBlob().equals(this.getCiphertextBlob()) == false)
  return false;
if (other.getSourceEncryptionContext() == null ^ this.getSourceEncryptionContext() == null)
  return false;
if (other.getSourceEncryptionContext() != null && other.getSourceEncryptionContext().equals(this.getSourceEncryptionContext()) == false)
  return false;
if (other.getDestinationKeyId() == null ^ this.getDestinationKeyId() == null)
if (other.getDestinationEncryptionContext() == null ^ this.getDestinationEncryptionContext() == null)
  return false;
if (other.getDestinationEncryptionContext() != null && other.getDestinationEncryptionContext().equals(this.getDestinationEncryptionContext()) == false)
  return false;
if (other.getGrantTokens() == null ^ this.getGrantTokens() == null)
  return false;
if (other.getGrantTokens() != null && other.getGrantTokens().equals(this.getGrantTokens()) == false)
  return false;
return true;

代码示例来源:origin: line/armeria

if (!(this_present_name && that_present_name))
 return false;
if (!this.name.equals(that.name))
 return false;
if (!(this_present_index_options && that_present_index_options))
 return false;
if (!this.index_options.equals(that.index_options))
 return false;

代码示例来源:origin: apache/hive

public boolean equals(TI16Column that) {
 if (that == null)
  return false;
 boolean this_present_values = true && this.isSetValues();
 boolean that_present_values = true && that.isSetValues();
 if (this_present_values || that_present_values) {
  if (!(this_present_values && that_present_values))
   return false;
  if (!this.values.equals(that.values))
   return false;
 }
 boolean this_present_nulls = true && this.isSetNulls();
 boolean that_present_nulls = true && that.isSetNulls();
 if (this_present_nulls || that_present_nulls) {
  if (!(this_present_nulls && that_present_nulls))
   return false;
  if (!this.nulls.equals(that.nulls))
   return false;
 }
 return true;
}

代码示例来源:origin: apache/hbase

if (!(this_present_row && that_present_row))
 return false;
if (!this.row.equals(that.row))
 return false;
if (!(this_present_columnValues && that_present_columnValues))
 return false;
if (!this.columnValues.equals(that.columnValues))
 return false;
if (!(this_present_attributes && that_present_attributes))
 return false;
if (!this.attributes.equals(that.attributes))
 return false;

相关文章

微信公众号

最新文章

更多