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

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

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

LocalDate.isEqual介绍

暂无

代码示例

代码示例来源:origin: org.jvnet.hudson.plugins/dashboard-view

@Override public int compare(LocalDate d1, LocalDate d2) {
    if(d1.isEqual(d2))
     return 0;
    if(d1.isAfter(d2))
     return 1;
    return -1;
  }
};

代码示例来源:origin: tcplugins/tcWebHooks

private Map<LocalDate, List<WebHookHistoryItem>> findHistoryItemsGroupedByDay(LocalDate untilDate, int numberOfDays, List<WebHookHistoryItem> items) {
  Map<LocalDate, List<WebHookHistoryItem>> groupedHistoryItems = new LinkedHashMap<>(numberOfDays);
  for (LocalDate thisDate : getArrayOfDates(untilDate, numberOfDays)) {
    List<WebHookHistoryItem> thisDateList = new ArrayList<>();
    for (WebHookHistoryItem item : items) {
      if (thisDate.isEqual(item.getTimestamp().toLocalDate())) {
        thisDateList.add(item);
      }
    }
    groupedHistoryItems.put(thisDate, thisDateList);
  }
  return groupedHistoryItems;
}

代码示例来源:origin: kitodo/kitodo-production

try {
  LocalDate date = toRecentLocalDate(accessed, today);
  result.put("accessed", date.toDateTime(date.isEqual(today) ? new LocalTime() : dayEnd).toString());
} catch (RuntimeException e) {
  logger.error(e.getMessage(), e);

代码示例来源:origin: org.schoellerfamily.gedbrowser/gedbrowser-analytics

/**
 * @param newDate the newDate
 * @return true if the order is correct
 */
private boolean newDateAfterCurrent(final LocalDate newDate) {
  if (getCurrentDate() == null) {
    setCurrentDate(newDate);
    return true;
  }
  if (newDate == null) {
    return true;
  }
  if (newDate.isEqual(getCurrentDate())) {
    return true;
  }
  if (newDate.isAfter(getCurrentDate())) {
    setCurrentDate(newDate);
    return true;
  }
  return false;
}

代码示例来源:origin: org.incode.module.base/incode-module-base-dom

/**
 * Does this date contain the specified time interval.
 * 
 * @param date
 * @return
 */
public boolean contains(final LocalDate date) {
  if (date == null){
    return false;
  }
  if (endDate() == null) {
    if (startDate() == null) {
      return true;
    }
    if (date.isEqual(startDate()) || date.isAfter(startDate())) {
      return true;
    }
    return false;
  }
  return asInterval().contains(date.toInterval());
}

代码示例来源:origin: datacleaner/DataCleaner

if (localDate.isEqual(_maxDate)) {
  _annotationFactory.annotate(row, distinctCount, _maxDateAnnotation);
if (localDate.isEqual(_minDate)) {
  _annotationFactory.annotate(row, distinctCount, _minDateAnnotation);

代码示例来源:origin: org.eobjects.analyzerbeans/AnalyzerBeans-basic-analyzers

if (localDate.isEqual(_maxDate)) {
  _annotationFactory.annotate(row, distinctCount, _maxDateAnnotation);
if (localDate.isEqual(_minDate)) {
  _annotationFactory.annotate(row, distinctCount, _minDateAnnotation);

代码示例来源:origin: TUM-Dev/Campus-Android

LocalDate visibleDay = new LocalDate(newFirstVisibleDay);
LocalDate today = LocalDate.now();
boolean isToday = visibleDay.isEqual(today);

代码示例来源:origin: org.kuali.kpme/kpme-tk-lm-impl

if (actionDateTime.toLocalDate().isEqual(LocalDate.now()) && actionDateTime.isAfterNow()) {
  GlobalVariables.getMessageMap().putError("document.actionTime", "clock.mp.future.time");
  valid = false;

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

if (finalSituationDate.toLocalDate().isEqual(activeSituationDate.toLocalDate())
    && finalSituationDate.isBefore(activeSituationDate)) {
  bean.setFinalSituationDate(activeSituationDate.plusMinutes(1));

代码示例来源:origin: org.kuali.kpme/kpme-tk-lm-impl

LocalDate serviceDate = principalHRAttributes.getServiceLocalDate();
  if (serviceDate != null) {
    if (previousBeginDate.isEqual(serviceDate) || previousBeginDate.isAfter(serviceDate)) {
      leaveCalendarForm.setPrevHrCalendarEntryId(previousCalendarEntry.getHrCalendarEntryId());
if (LocalDate.now().isBefore(calendarEntry.getEndPeriodFullDateTime().toLocalDate()) || LocalDate.now().isEqual(calendarEntry.getEndPeriodFullDateTime().toLocalDate())) {
  setDocEditable(leaveCalendarForm, leaveCalendarDocument);

相关文章