org.threeten.bp.Instant.hashCode()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(1.6k)|赞(0)|评价(0)|浏览(230)

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

Instant.hashCode介绍

[英]Returns a hash code for this instant.
[中]返回此瞬间的哈希代码。

代码示例

代码示例来源:origin: ThreeTen/threetenbp

@Override
public int hashCode() {
  return instant.hashCode() ^ zone.hashCode();
}
@Override

代码示例来源:origin: org.threeten/threetenbp

@Override
public int hashCode() {
  return instant.hashCode() ^ zone.hashCode();
}
@Override

代码示例来源:origin: com.torodb.torod/torod-core

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

代码示例来源:origin: com.torodb.kvdocument/kvdocument-core

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

代码示例来源:origin: alexvoronov/geonetworking

@Override public int hashCode() {
  final int prime = 31;
  int result = 1;
  result = prime * result + getOuterType().hashCode();
  result = prime * result + ((sender == null) ? 0 : sender.hashCode());
  result = prime * result + ((sequenceNumber == null) ? 0 : sequenceNumber.hashCode());
  result = prime * result + ((timestamp == null) ? 0 : timestamp.hashCode());
  return result;
}

代码示例来源:origin: alexvoronov/geonetworking

@Override
public int hashCode() {
  final int prime = 31;
  int result = 1;
  result = prime * result + ((address == null) ? 0 : address.hashCode());
  result = prime * result + headingAsStoreUnit(headingDegreesFromNorth);
  result = prime * result + (isPositionConfident ? 1231 : 1237);
  result = prime * result + ((position == null) ? 0 : position.hashCode());
  result = prime * result + speedAsStoreUnit(speedMetersPerSecond);
  result = prime * result + ((timestamp == null) ? 0 : timestamp.hashCode());
  return result;
}
@Override

相关文章