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

x33g5p2x  于2022-01-23 转载在 其他  
字(7.5k)|赞(0)|评价(0)|浏览(128)

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

LocalDate.hashCode介绍

[英]Gets a hash code for the instant as defined in ReadablePartial.
[中]获取ReadablePartial中定义的即时哈希代码。

代码示例

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

@Override
public int hashCode() {
  int result = id != null ? id.hashCode() : 0;
  result = 31 * result + (subscriptionId != null ? subscriptionId.hashCode() : 0);
  result = 31 * result + (unitType != null ? unitType.hashCode() : 0);
  result = 31 * result + (recordDate != null ? recordDate.hashCode() : 0);
  result = 31 * result + (amount != null ? amount.hashCode() : 0);
  result = 31 * result + (trackingId != null ? trackingId.hashCode() : 0);
  return result;
}

代码示例来源:origin: org.hudsonci.plugins/analysis-core

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

代码示例来源:origin: com.cedarsoft.utils.history/core

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

代码示例来源:origin: com.ning.billing/killbill-invoice

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

代码示例来源:origin: net.rapture/Reflex

@Override
public int hashCode() {
  final int prime = 31;
  int result = 7;
  result = prime * result + ((date == null) ? 0 : date.hashCode());
  return result;
}

代码示例来源:origin: jenkinsci/analysis-core-plugin

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

代码示例来源:origin: org.kill-bill.billing/killbill-invoice

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

代码示例来源:origin: com.ning.billing/killbill-invoice

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

代码示例来源:origin: org.kill-bill.billing/killbill-invoice

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

代码示例来源:origin: com.ning.billing/killbill-jaxrs

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

代码示例来源:origin: com.ning.billing/killbill-analytics

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

代码示例来源:origin: com.ning.billing/killbill-jaxrs

@Override
  public int hashCode() {
    int result = creditAmount != null ? creditAmount.hashCode() : 0;
    result = 31 * result + (invoiceId != null ? invoiceId.hashCode() : 0);
    result = 31 * result + (invoiceNumber != null ? invoiceNumber.hashCode() : 0);
    result = 31 * result + (effectiveDate != null ? effectiveDate.hashCode() : 0);
    return result;
  }
}

代码示例来源:origin: org.kill-bill.billing/killbill-usage

@Override
public int hashCode() {
  int result = id != null ? id.hashCode() : 0;
  result = 31 * result + (subscriptionId != null ? subscriptionId.hashCode() : 0);
  result = 31 * result + (unitType != null ? unitType.hashCode() : 0);
  result = 31 * result + (recordDate != null ? recordDate.hashCode() : 0);
  result = 31 * result + (amount != null ? amount.hashCode() : 0);
  result = 31 * result + (trackingId != null ? trackingId.hashCode() : 0);
  return result;
}

代码示例来源:origin: com.ning.billing/killbill-jaxrs

@Override
  public int hashCode() {
    int result = billingPeriod != null ? billingPeriod.hashCode() : 0;
    result = 31 * result + (requestedDate != null ? requestedDate.hashCode() : 0);
    result = 31 * result + (product != null ? product.hashCode() : 0);
    result = 31 * result + (priceList != null ? priceList.hashCode() : 0);
    result = 31 * result + (eventType != null ? eventType.hashCode() : 0);
    result = 31 * result + (phase != null ? phase.hashCode() : 0);
    return result;
  }
}

代码示例来源:origin: com.ning.billing/killbill-analytics

@Override
  public int hashCode() {
    int result = externalKey != null ? externalKey.hashCode() : 0;
    result = 31 * result + (name != null ? name.hashCode() : 0);
    result = 31 * result + (currency != null ? currency.hashCode() : 0);
    result = 31 * result + (balance != null ? balance.hashCode() : 0);
    result = 31 * result + (lastInvoiceDate != null ? lastInvoiceDate.hashCode() : 0);
    result = 31 * result + (totalInvoiceBalance != null ? totalInvoiceBalance.hashCode() : 0);
    result = 31 * result + (lastPaymentStatus != null ? lastPaymentStatus.hashCode() : 0);
    result = 31 * result + (defaultPaymentMethodType != null ? defaultPaymentMethodType.hashCode() : 0);
    result = 31 * result + (defaultCreditCardType != null ? defaultCreditCardType.hashCode() : 0);
    result = 31 * result + (defaultBillingAddressCountry != null ? defaultBillingAddressCountry.hashCode() : 0);
    return result;
  }
}

代码示例来源:origin: org.kill-bill.billing/killbill-invoice

@Override
  public int hashCode() {
    int result = super.hashCode();
    result = 31 * result + (targetDate != null ? targetDate.hashCode() : 0);
    result = 31 * result + (invoice != null ? invoice.hashCode() : 0);
    result = 31 * result + (existingInvoices != null ? existingInvoices.hashCode() : 0);
    result = 31 * result + (isDryRun ? 1 : 0);
    result = 31 * result + (isRescheduled ? 1 : 0);
    return result;
  }
}

代码示例来源:origin: com.ning.billing/killbill-invoice

@Override
public int hashCode() {
  int result = super.hashCode();
  result = 31 * result + (accountId != null ? accountId.hashCode() : 0);
  result = 31 * result + (invoiceNumber != null ? invoiceNumber.hashCode() : 0);
  result = 31 * result + (invoiceDate != null ? invoiceDate.hashCode() : 0);
  result = 31 * result + (targetDate != null ? targetDate.hashCode() : 0);
  result = 31 * result + (currency != null ? currency.hashCode() : 0);
  result = 31 * result + (migrated ? 1 : 0);
  return result;
}

代码示例来源:origin: org.kill-bill.billing/killbill-jaxrs

@Override
  public int hashCode() {
    int result = creditAmount != null ? creditAmount.hashCode() : 0;
    result = 31 * result + (creditId != null ? creditId.hashCode() : 0);
    result = 31 * result + (currency != null ? currency.hashCode() : 0);
    result = 31 * result + (invoiceId != null ? invoiceId.hashCode() : 0);
    result = 31 * result + (description != null ? description.hashCode() : 0);
    result = 31 * result + (itemDetails != null ? itemDetails.hashCode() : 0);
    result = 31 * result + (invoiceNumber != null ? invoiceNumber.hashCode() : 0);
    result = 31 * result + (effectiveDate != null ? effectiveDate.hashCode() : 0);
    return result;
  }
}

代码示例来源:origin: org.kill-bill.billing.plugin.java/killbill-base-plugin

@Override
  public int hashCode() {
    int result = dryRunType != null ? dryRunType.hashCode() : 0;
    result = 31 * result + (entitlementSpecifier != null ? entitlementSpecifier.hashCode() : 0);
    result = 31 * result + (action != null ? action.hashCode() : 0);
    result = 31 * result + (subscriptionId != null ? subscriptionId.hashCode() : 0);
    result = 31 * result + (effectiveDate != null ? effectiveDate.hashCode() : 0);
    result = 31 * result + (bundleId != null ? bundleId.hashCode() : 0);
    result = 31 * result + (billingActionPolicy != null ? billingActionPolicy.hashCode() : 0);
    return result;
  }
}

代码示例来源:origin: FenixEdu/fenixedu-academic

@Override
public int hashCode() {
  int result = (isForPenalty() ? 1 : 0);
  result = 31 * result + (getEntryType() != null ? getEntryType().hashCode() : 0);
  result = 31 * result + (getEvent() != null ? getEvent().hashCode() : 0);
  result = 31 * result + (getTotalAmount() != null ? getTotalAmount().hashCode() : 0);
  result = 31 * result + (getPayedAmount() != null ? getPayedAmount().hashCode() : 0);
  result = 31 * result + (getAmountToPay() != null ? getAmountToPay().hashCode() : 0);
  result = 31 * result + (getDescription() != null ? getDescription().hashCode() : 0);
  result = 31 * result + (getDebtAmount() != null ? getDebtAmount().hashCode() : 0);
  result = 31 * result + (getDueDate() != null ? getDueDate().hashCode() : 0);
  return result;
}

相关文章