com.google.protobuf.Internal.hashLong()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(8.5k)|赞(0)|评价(0)|浏览(125)

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

Internal.hashLong介绍

[英]Helper method for implementing MessageLite#hashCode() for longs.
[中]用于为long实现MessageLite#hashCode()的Helper方法。

代码示例

代码示例来源:origin: alibaba/canal

@java.lang.Override
public int hashCode() {
 if (memoizedHashCode != 0) {
  return memoizedHashCode;
 }
 int hash = 41;
 hash = (19 * hash) + getDescriptor().hashCode();
 hash = (37 * hash) + SEND_TIMESTAMP_FIELD_NUMBER;
 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
   getSendTimestamp());
 hash = (37 * hash) + START_TIMESTAMP_FIELD_NUMBER;
 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
   getStartTimestamp());
 hash = (29 * hash) + unknownFields.hashCode();
 memoizedHashCode = hash;
 return hash;
}

代码示例来源:origin: com.google.protobuf/protobuf-java

@java.lang.Override
public int hashCode() {
 if (memoizedHashCode != 0) {
  return memoizedHashCode;
 }
 int hash = 41;
 hash = (19 * hash) + getDescriptor().hashCode();
 hash = (37 * hash) + VALUE_FIELD_NUMBER;
 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
   java.lang.Double.doubleToLongBits(getValue()));
 hash = (29 * hash) + unknownFields.hashCode();
 memoizedHashCode = hash;
 return hash;
}

代码示例来源:origin: alibaba/canal

@java.lang.Override
public int hashCode() {
 if (memoizedHashCode != 0) {
  return memoizedHashCode;
 }
 int hash = 41;
 hash = (19 * hash) + getDescriptor().hashCode();
 hash = (37 * hash) + JOURNAL_FIELD_NUMBER;
 hash = (53 * hash) + getJournal().hashCode();
 hash = (37 * hash) + POSITION_FIELD_NUMBER;
 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
   getPosition());
 switch (timestampPresentCase_) {
  case 3:
   hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
   hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
     getTimestamp());
   break;
  case 0:
  default:
 }
 hash = (29 * hash) + unknownFields.hashCode();
 memoizedHashCode = hash;
 return hash;
}

代码示例来源:origin: com.google.protobuf/protobuf-java

@java.lang.Override
public int hashCode() {
 if (memoizedHashCode != 0) {
  return memoizedHashCode;
 }
 int hash = 41;
 hash = (19 * hash) + getDescriptor().hashCode();
 hash = (37 * hash) + VALUE_FIELD_NUMBER;
 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
   getValue());
 hash = (29 * hash) + unknownFields.hashCode();
 memoizedHashCode = hash;
 return hash;
}

代码示例来源:origin: AxonFramework/AxonFramework

@java.lang.Override
public int hashCode() {
 if (memoizedHashCode != 0) {
  return memoizedHashCode;
 }
 int hash = 41;
 hash = (19 * hash) + getDescriptor().hashCode();
 hash = (37 * hash) + INSTANT_FIELD_NUMBER;
 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
   getInstant());
 hash = (29 * hash) + unknownFields.hashCode();
 memoizedHashCode = hash;
 return hash;
}

代码示例来源:origin: com.google.protobuf/protobuf-java

@java.lang.Override
public int hashCode() {
 if (memoizedHashCode != 0) {
  return memoizedHashCode;
 }
 int hash = 41;
 hash = (19 * hash) + getDescriptor().hashCode();
 hash = (37 * hash) + VALUE_FIELD_NUMBER;
 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
   getValue());
 hash = (29 * hash) + unknownFields.hashCode();
 memoizedHashCode = hash;
 return hash;
}

代码示例来源:origin: AxonFramework/AxonFramework

@java.lang.Override
public int hashCode() {
 if (memoizedHashCode != 0) {
  return memoizedHashCode;
 }
 int hash = 41;
 hash = (19 * hash) + getDescriptor().hashCode();
 hash = (37 * hash) + TO_SEQUENCE_NR_FIELD_NUMBER;
 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
   getToSequenceNr());
 hash = (29 * hash) + unknownFields.hashCode();
 memoizedHashCode = hash;
 return hash;
}

代码示例来源:origin: AxonFramework/AxonFramework

@java.lang.Override
public int hashCode() {
 if (memoizedHashCode != 0) {
  return memoizedHashCode;
 }
 int hash = 41;
 hash = (19 * hash) + getDescriptor().hashCode();
 hash = (37 * hash) + TOKEN_FIELD_NUMBER;
 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
   getToken());
 hash = (29 * hash) + unknownFields.hashCode();
 memoizedHashCode = hash;
 return hash;
}

代码示例来源:origin: googleapis/google-cloud-java

@java.lang.Override
public int hashCode() {
 if (memoizedHashCode != 0) {
  return memoizedHashCode;
 }
 int hash = 41;
 hash = (19 * hash) + getDescriptor().hashCode();
 hash = (37 * hash) + ESTIMATED_ROW_COUNT_FIELD_NUMBER;
 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getEstimatedRowCount());
 hash = (29 * hash) + unknownFields.hashCode();
 memoizedHashCode = hash;
 return hash;
}

代码示例来源:origin: googleapis/google-cloud-java

@java.lang.Override
public int hashCode() {
 if (memoizedHashCode != 0) {
  return memoizedHashCode;
 }
 int hash = 41;
 hash = (19 * hash) + getDescriptor().hashCode();
 hash = (37 * hash) + FILE_OFFSET_FIELD_NUMBER;
 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFileOffset());
 hash = (29 * hash) + unknownFields.hashCode();
 memoizedHashCode = hash;
 return hash;
}

代码示例来源:origin: alibaba/canal

@java.lang.Override
public int hashCode() {
 if (memoizedHashCode != 0) {
  return memoizedHashCode;
 }
 int hash = 41;
 hash = (19 * hash) + getDescriptor().hashCode();
 hash = (37 * hash) + DESTINATION_FIELD_NUMBER;
 hash = (53 * hash) + getDestination().hashCode();
 hash = (37 * hash) + CLIENT_ID_FIELD_NUMBER;
 hash = (53 * hash) + getClientId().hashCode();
 hash = (37 * hash) + BATCH_ID_FIELD_NUMBER;
 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
   getBatchId());
 hash = (29 * hash) + unknownFields.hashCode();
 memoizedHashCode = hash;
 return hash;
}

代码示例来源:origin: alibaba/canal

@java.lang.Override
public int hashCode() {
 if (memoizedHashCode != 0) {
  return memoizedHashCode;
 }
 int hash = 41;
 hash = (19 * hash) + getDescriptor().hashCode();
 hash = (37 * hash) + DESTINATION_FIELD_NUMBER;
 hash = (53 * hash) + getDestination().hashCode();
 hash = (37 * hash) + CLIENT_ID_FIELD_NUMBER;
 hash = (53 * hash) + getClientId().hashCode();
 hash = (37 * hash) + BATCH_ID_FIELD_NUMBER;
 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
   getBatchId());
 hash = (29 * hash) + unknownFields.hashCode();
 memoizedHashCode = hash;
 return hash;
}

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

@java.lang.Override
public int hashCode() {
 if (memoizedHashCode != 0) {
  return memoizedHashCode;
 }
 int hash = 41;
 hash = (19 * hash) + getDescriptor().hashCode();
 hash = (37 * hash) + EXCEPTIONSTRING_FIELD_NUMBER;
 hash = (53 * hash) + getExceptionString().hashCode();
 hash = (37 * hash) + MSSINCEEPOCH_FIELD_NUMBER;
 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
   getMsSinceEpoch());
 hash = (29 * hash) + unknownFields.hashCode();
 memoizedHashCode = hash;
 return hash;
}

代码示例来源:origin: Alluxio/alluxio

@java.lang.Override
public int hashCode() {
 if (memoizedHashCode != 0) {
  return memoizedHashCode;
 }
 int hash = 41;
 hash = (19 * hash) + getDescriptor().hashCode();
 if (hasId()) {
  hash = (37 * hash) + ID_FIELD_NUMBER;
  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
    getId());
 }
 hash = (29 * hash) + unknownFields.hashCode();
 memoizedHashCode = hash;
 return hash;
}

代码示例来源:origin: Alluxio/alluxio

@java.lang.Override
public int hashCode() {
 if (memoizedHashCode != 0) {
  return memoizedHashCode;
 }
 int hash = 41;
 hash = (19 * hash) + getDescriptor().hashCode();
 if (hasBytes()) {
  hash = (37 * hash) + BYTES_FIELD_NUMBER;
  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
    getBytes());
 }
 hash = (29 * hash) + unknownFields.hashCode();
 memoizedHashCode = hash;
 return hash;
}

代码示例来源:origin: Alluxio/alluxio

@java.lang.Override
public int hashCode() {
 if (memoizedHashCode != 0) {
  return memoizedHashCode;
 }
 int hash = 41;
 hash = (19 * hash) + getDescriptor().hashCode();
 if (hasStoreId()) {
  hash = (37 * hash) + STORE_ID_FIELD_NUMBER;
  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
    getStoreId());
 }
 hash = (29 * hash) + unknownFields.hashCode();
 memoizedHashCode = hash;
 return hash;
}

代码示例来源:origin: alibaba/canal

@java.lang.Override
public int hashCode() {
 if (memoizedHashCode != 0) {
  return memoizedHashCode;
 }
 int hash = 41;
 hash = (19 * hash) + getDescriptor().hashCode();
 hash = (37 * hash) + BATCH_ID_FIELD_NUMBER;
 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
   getBatchId());
 if (getMessagesCount() > 0) {
  hash = (37 * hash) + MESSAGES_FIELD_NUMBER;
  hash = (53 * hash) + getMessagesList().hashCode();
 }
 hash = (29 * hash) + unknownFields.hashCode();
 memoizedHashCode = hash;
 return hash;
}

代码示例来源:origin: Alluxio/alluxio

@java.lang.Override
public int hashCode() {
 if (memoizedHashCode != 0) {
  return memoizedHashCode;
 }
 int hash = 41;
 hash = (19 * hash) + getDescriptor().hashCode();
 if (hasFileId()) {
  hash = (37 * hash) + FILE_ID_FIELD_NUMBER;
  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
    getFileId());
 }
 hash = (29 * hash) + unknownFields.hashCode();
 memoizedHashCode = hash;
 return hash;
}

代码示例来源:origin: Alluxio/alluxio

@java.lang.Override
public int hashCode() {
 if (memoizedHashCode != 0) {
  return memoizedHashCode;
 }
 int hash = 41;
 hash = (19 * hash) + getDescriptor().hashCode();
 if (hasNextContainerId()) {
  hash = (37 * hash) + NEXT_CONTAINER_ID_FIELD_NUMBER;
  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
    getNextContainerId());
 }
 hash = (29 * hash) + unknownFields.hashCode();
 memoizedHashCode = hash;
 return hash;
}

代码示例来源:origin: Alluxio/alluxio

@java.lang.Override
public int hashCode() {
 if (memoizedHashCode != 0) {
  return memoizedHashCode;
 }
 int hash = 41;
 hash = (19 * hash) + getDescriptor().hashCode();
 if (hasBlockId()) {
  hash = (37 * hash) + BLOCK_ID_FIELD_NUMBER;
  hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
    getBlockId());
 }
 hash = (29 * hash) + unknownFields.hashCode();
 memoizedHashCode = hash;
 return hash;
}

相关文章