java.time.OffsetDateTime.hashCode()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(3.5k)|赞(0)|评价(0)|浏览(138)

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

OffsetDateTime.hashCode介绍

[英]A hash code for this date-time.
[中]此日期时间的哈希代码。

代码示例

代码示例来源:origin: com.microsoft.rest.v2/client-runtime

@Override
public int hashCode() {
  return this.dateTime.hashCode();
}

代码示例来源:origin: com.microsoft.rest.v2/client-runtime

@Override
public int hashCode() {
  return this.dateTime.hashCode();
}

代码示例来源:origin: fabienrenaud/java-json-benchmark

@Override
public int hashCode() {
  int result = (int)id;
  result = 31 * result + (since != null ? since.hashCode() : 0);
  result = 31 * result + (name != null ? name.hashCode() : 0);
  return result;
}

代码示例来源:origin: MER-C/wiki-java

/**
 *  Returns a hashcode of this user based on the username and
 *  registration date.
 *  @return see above
 */
@Override
public int hashCode()
{
  return username.hashCode() * 127 + registration.hashCode();
}

代码示例来源:origin: Baeldung/spring-event-sourcing-and-cqrs

@Override
public int hashCode() {
  final int prime = 31;
  int result = 1;
  result = prime * result + ((correlationId == null) ? 0 : correlationId.hashCode());
  result = prime * result + ((payload == null) ? 0 : payload.hashCode());
  result = prime * result + ((transactionTime == null) ? 0 : transactionTime.hashCode());
  return result;
}

代码示例来源:origin: MER-C/wiki-java

/**
 *  Returns a hash code for this object based on the ID, timestamp,
 *  user, title and comment.
 *  @return (see above)
 */
@Override
public int hashCode()
{
  int hc = Long.hashCode(id);
  hc = 127 * hc + timestamp.hashCode();
  hc = 127 * hc + (user == null ? 0 : user.hashCode());
  hc = 127 * hc + (title == null ? 0 : title.hashCode());
  hc = 127 * hc + (comment == null ? 0 : comment.hashCode());
  return hc;
}

代码示例来源:origin: otto-de/edison-microservice

@Override
public int hashCode() {
  int result = jobId != null ? jobId.hashCode() : 0;
  result = 31 * result + (jobType != null ? jobType.hashCode() : 0);
  result = 31 * result + (started != null ? started.hashCode() : 0);
  result = 31 * result + (stopped != null ? stopped.hashCode() : 0);
  result = 31 * result + (messages != null ? messages.hashCode() : 0);
  result = 31 * result + (status != null ? status.hashCode() : 0);
  result = 31 * result + (lastUpdated != null ? lastUpdated.hashCode() : 0);
  result = 31 * result + (hostname != null ? hostname.hashCode() : 0);
  return result;
}

代码示例来源:origin: openmhealth/schemas

@Override
  public int hashCode() {

    int result = sourceName.hashCode();
    result = 31 * result + (sourceCreationDateTime != null ? sourceCreationDateTime.hashCode() : 0);
    result = 31 * result + (modality != null ? modality.hashCode() : 0);
    return result;
  }
}

代码示例来源:origin: openmhealth/schemas

@Override
  public int hashCode() {

    int result = timeInterval != null ? timeInterval.hashCode() : 0;
    result = 31 * result + (dateTime != null ? dateTime.hashCode() : 0);
    return result;
  }
}

代码示例来源:origin: otto-de/edison-microservice

@Override
public int hashCode() {
  int result = level != null ? level.hashCode() : 0;
  result = 31 * result + (message != null ? message.hashCode() : 0);
  result = 31 * result + (timestamp != null ? timestamp.hashCode() : 0);
  return result;
}

代码示例来源:origin: openmhealth/schemas

@Override
  public int hashCode() {

    int result = id.hashCode();
    result = 31 * result + creationDateTime.hashCode();
    result = 31 * result + bodySchemaId.hashCode();
    result = 31 * result + (acquisitionProvenance != null ? acquisitionProvenance.hashCode() : 0);
    result = 31 * result + (userId != null ? userId.hashCode() : 0);
    return result;
  }
}

代码示例来源:origin: openmhealth/schemas

@Override
  public int hashCode() {

    int result = startDateTime != null ? startDateTime.hashCode() : 0;
    result = 31 * result + (endDateTime != null ? endDateTime.hashCode() : 0);
    result = 31 * result + (duration != null ? duration.hashCode() : 0);
    result = 31 * result + (date != null ? date.hashCode() : 0);
    result = 31 * result + (partOfDay != null ? partOfDay.hashCode() : 0);
    return result;
  }
}

相关文章