org.joda.time.DateTime.hashCode()方法的使用及代码示例

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

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

DateTime.hashCode介绍

暂无

代码示例

代码示例来源:origin: apache/incubator-druid

@Override
public int hashCode()
{
 int result = time != null ? time.hashCode() : 0;
 result = 31 * result + partitionNum;
 result = 31 * result + shardNum;
 return result;
}

代码示例来源:origin: apache/incubator-druid

@Override
public int hashCode()
{
 return maxIngestedEventTime != null ? maxIngestedEventTime.hashCode() : 0;
}

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

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

代码示例来源:origin: apache/incubator-druid

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

代码示例来源:origin: apache/incubator-druid

@Override
public int hashCode()
{
 int result = timestamp.hashCode();
 result = 31 * result + event.hashCode();
 return result;
}

代码示例来源:origin: joelittlejohn/jsonschema2pojo

@Override
public int hashCode() {
  int result = 1;
  result = ((result* 31)+((this.aJodaTimeObject == null)? 0 :this.aJodaTimeObject.hashCode()));
  result = ((result* 31)+((this.additionalProperties == null)? 0 :this.additionalProperties.hashCode()));
  return result;
}

代码示例来源:origin: apache/incubator-druid

@Override
public int hashCode()
{
 int result = timestampColumn.hashCode();
 result = 31 * result + timestampFormat.hashCode();
 result = 31 * result + (missingValue != null ? missingValue.hashCode() : 0);
 return result;
}

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

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

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

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

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

@Override
public int hashCode() {
  int result = recordId != null ? recordId.hashCode() : 0;
  result = 31 * result + (id != null ? id.hashCode() : 0);
  result = 31 * result + (startTimestamp != null ? startTimestamp.hashCode() : 0);
  result = 31 * result + (lastAccessTime != null ? lastAccessTime.hashCode() : 0);
  result = 31 * result + (int) (timeout ^ (timeout >>> 32));
  result = 31 * result + (host != null ? host.hashCode() : 0);
  result = 31 * result + Arrays.hashCode(sessionData);
  return result;
}

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

@Override
public int hashCode() {
  int result = id != null ? id.hashCode() : 0;
  result = 31 * result + (createdDate != null ? createdDate.hashCode() : 0);
  result = 31 * result + (updatedDate != null ? updatedDate.hashCode() : 0);
  result = 31 * result + (externalKey != null ? externalKey.hashCode() : 0);
  result = 31 * result + (apiKey != null ? apiKey.hashCode() : 0);
  result = 31 * result + (apiSecret != null ? apiSecret.hashCode() : 0);
  return result;
}

代码示例来源:origin: apache/incubator-druid

@Override
public int hashCode()
{
 int result = key.hashCode();
 result = 31 * result + type.hashCode();
 result = 31 * result + auditInfo.hashCode();
 result = 31 * result + payload.hashCode();
 result = 31 * result + auditTime.hashCode();
 return result;
}

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

@Override
  public int hashCode() {
    /* int result = recordId != null ? recordId.hashCode() : 0; */
    int result = nodeName != null ? nodeName.hashCode() : 0;
    result = 31 * result + (bootDate != null ? bootDate.hashCode() : 0);
    //result = 31 * result + (updatedDate != null ? updatedDate.hashCode() : 0);
    result = 31 * result + (nodeInfo != null ? nodeInfo.hashCode() : 0);
    result = 31 * result + (isActive != null ? isActive.hashCode() : 0);
    return result;
  }
}

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

@Override
public int hashCode() {
  int result = super.hashCode();
  result = 31 * result + (externalKey != null ? externalKey.hashCode() : 0);
  result = 31 * result + (accountId != null ? accountId.hashCode() : 0);
  result = 31 * result + (lastSysUpdateDate != null ? lastSysUpdateDate.hashCode() : 0);
  result = 31 * result + (originalCreatedDate != null ? originalCreatedDate.hashCode() : 0);
  return result;
}

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

@Override
public int hashCode() {
  int result = super.hashCode();
  result = 31 * result + (bundleId != null ? bundleId.hashCode() : 0);
  result = 31 * result + (category != null ? category.hashCode() : 0);
  result = 31 * result + (startDate != null ? startDate.hashCode() : 0);
  result = 31 * result + (bundleStartDate != null ? bundleStartDate.hashCode() : 0);
  result = 31 * result + (chargedThroughDate != null ? chargedThroughDate.hashCode() : 0);
  result = 31 * result + Boolean.valueOf(migrated).hashCode();
  return result;
}

代码示例来源:origin: apache/incubator-druid

@Override
public int hashCode()
{
 int result = worker.hashCode();
 result = 31 * result + currCapacityUsed;
 result = 31 * result + availabilityGroups.hashCode();
 result = 31 * result + runningTasks.hashCode();
 result = 31 * result + lastCompletedTaskTime.hashCode();
 result = 31 * result + (blacklistedUntil != null ? blacklistedUntil.hashCode() : 0);
 return result;
}

代码示例来源:origin: apache/incubator-gobblin

@Override
 public int hashCode() {
  int result = this.version.hashCode();
  result = 31 * result + (entry != null ? entry.hashCode() : 0);
  return result;
 }
}

代码示例来源:origin: joda-time/joda-time

/**
 * A suitable hashcode for the chronology.
 * 
 * @return the hashcode
 * @since 1.4
 */
public int hashCode() {
  int hash = 317351877;
  hash += (getLowerLimit() != null ? getLowerLimit().hashCode() : 0);
  hash += (getUpperLimit() != null ? getUpperLimit().hashCode() : 0);
  hash += getBase().hashCode() * 7;
  return hash;
}

代码示例来源:origin: JodaOrg/joda-time

/**
 * A suitable hashcode for the chronology.
 * 
 * @return the hashcode
 * @since 1.4
 */
public int hashCode() {
  int hash = 317351877;
  hash += (getLowerLimit() != null ? getLowerLimit().hashCode() : 0);
  hash += (getUpperLimit() != null ? getUpperLimit().hashCode() : 0);
  hash += getBase().hashCode() * 7;
  return hash;
}

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

@Override
public int hashCode() {
  int result = id != null ? id.hashCode() : 0;
  result = 31 * result + (externalKey != null ? externalKey.hashCode() : 0);
  result = 31 * result + (currency != null ? currency.hashCode() : 0);
  result = 31 * result + (timeZone != null ? timeZone.hashCode() : 0);
  result = 31 * result + (fixedOffsetTimeZone != null ? fixedOffsetTimeZone.hashCode() : 0);
  result = 31 * result + (referenceTime != null ? referenceTime.hashCode() : 0);
  return result;
}

相关文章

DateTime类方法