net.fortuna.ical4j.model.DateTime.after()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(6.7k)|赞(0)|评价(0)|浏览(205)

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

DateTime.after介绍

暂无

代码示例

代码示例来源:origin: org.bedework.caleng/bw-calendar-engine-facade

/**
 * @param pstart
 * @param pend
 * @param type
 * @throws CalFacadeException
 */
public void addPeriod(DateTime pstart, DateTime pend,
           final int type) throws CalFacadeException {
 // Ignore if times were specified and this period is outside the times
 /* Don't report out of the requested period */
 if ((pstart.after(dtend)) || (pend.before(dtstart))) {
  //XXX Should get here - but apparently we do.
  return;
 }
 if (pstart.before(dtstart)) {
  pstart = dtstart;
 }
 if (pend.after(dtend)) {
  pend = dtend;
 }
 add(new EventPeriod(pstart, pend, type));
}

代码示例来源:origin: net.oneandone.cosmo/cosmo-core

filter.getPeriod().getEnd().after(triggerDate)) {
return true;

代码示例来源:origin: 1and1/cosmo

filter.getPeriod().getEnd().after(triggerDate)) {
return true;

代码示例来源:origin: org.bedework/bw-ical4j-cl

if (period.getEnd().after(lastPeriodEnd)) {
  lastPeriodEnd = period.getEnd();

代码示例来源:origin: org.bedework.caleng/bw-calendar-engine-facade

} else if (ep.start.after(p.getEnd())) {
} else if (ep.end.after(p.getEnd())) {

代码示例来源:origin: org.bedework.ical4j/ical4j

public FreeBusy build() {
    final FreeBusy fb = new FreeBusy();
    fb.getParameters().add(FbType.FREE);
    final PeriodList periods = getConsumedTime(components, start, end);
    final DateRange range = new DateRange(start, end);
    // Add final consumed time to avoid special-case end-of-list processing
    periods.add(new Period(end, end));
    DateTime lastPeriodEnd = new DateTime(start);
    // where no time is consumed set the last period end as the range start..
    for (final Period period : periods) {
      // check if period outside bounds.. or period intersects with the end of the range..
      if (range.contains(period) || 
          (range.intersects(period) && period.getStart().after(range.getRangeStart()))) {
        
        // calculate duration between this period start and last period end..
        final Duration freeDuration = new Duration(lastPeriodEnd, period.getStart());
        if (freeDuration.getDuration().compareTo(duration) >= 0) {
          fb.getPeriods().add(new Period(lastPeriodEnd, freeDuration.getDuration()));
        }
      }
      
      if (period.getEnd().after(lastPeriodEnd)) {
        lastPeriodEnd = period.getEnd();
      }
    }
    return fb;
  }
}

代码示例来源:origin: net.oneandone.ical4j/ical4j

public FreeBusy build() {
    final FreeBusy fb = new FreeBusy();
    fb.getParameters().add(FbType.FREE);
    final PeriodList periods = getConsumedTime(components, start, end);
    final DateRange range = new DateRange(start, end);
    // Add final consumed time to avoid special-case end-of-list processing
    periods.add(new Period(end, end));
    DateTime lastPeriodEnd = new DateTime(start);
    // where no time is consumed set the last period end as the range start..
    for (final Period period : periods) {
      // check if period outside bounds.. or period intersects with the end of the range..
      if (range.contains(period) || 
          (range.intersects(period) && period.getStart().after(range.getRangeStart()))) {
        
        // calculate duration between this period start and last period end..
        final Duration freeDuration = new Duration(lastPeriodEnd, period.getStart());
        if (freeDuration.getDuration().compareTo(duration) >= 0) {
          fb.getPeriods().add(new Period(lastPeriodEnd, freeDuration.getDuration()));
        }
      }
      
      if (period.getEnd().after(lastPeriodEnd)) {
        lastPeriodEnd = period.getEnd();
      }
    }
    return fb;
  }
}

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

public FreeBusy build() {
    final FreeBusy fb = new FreeBusy();
    fb.getParameters().add(FbType.FREE);
    final PeriodList periods = getConsumedTime(components, start, end);
    final DateRange range = new DateRange(start, end);
    // Add final consumed time to avoid special-case end-of-list processing
    periods.add(new Period(end, end));
    DateTime lastPeriodEnd = new DateTime(start);
    // where no time is consumed set the last period end as the range start..
    for (final Period period : periods) {
      // check if period outside bounds.. or period intersects with the end of the range..
      if (range.contains(period) || 
          (range.intersects(period) && period.getStart().after(range.getRangeStart()))) {
        
        // calculate duration between this period start and last period end..
        final Duration freeDuration = new Duration(lastPeriodEnd, period.getStart());
        if (new TemporalAmountComparator().compare(freeDuration.getDuration(), duration) >= 0) {
          fb.getPeriods().add(new Period(lastPeriodEnd, freeDuration.getDuration()));
        }
      }
      
      if (period.getEnd().after(lastPeriodEnd)) {
        lastPeriodEnd = period.getEnd();
      }
    }
    return fb;
  }
}

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

newPeriodStart = period.getStart();
if (getEnd().after(period.getEnd())) {
  newPeriodEnd = getEnd();

代码示例来源:origin: org.mnode.ical4j/ical4j

public FreeBusy build() {
    final FreeBusy fb = new FreeBusy();
    fb.getParameters().add(FbType.FREE);
    final PeriodList periods = getConsumedTime(components, start, end);
    final DateRange range = new DateRange(start, end);
    // Add final consumed time to avoid special-case end-of-list processing
    periods.add(new Period(end, end));
    DateTime lastPeriodEnd = new DateTime(start);
    // where no time is consumed set the last period end as the range start..
    for (final Period period : periods) {
      // check if period outside bounds.. or period intersects with the end of the range..
      if (range.contains(period) || 
          (range.intersects(period) && period.getStart().after(range.getRangeStart()))) {
        
        // calculate duration between this period start and last period end..
        final Duration freeDuration = new Duration(lastPeriodEnd, period.getStart());
        if (new TemporalAmountComparator().compare(freeDuration.getDuration(), duration) >= 0) {
          fb.getPeriods().add(new Period(lastPeriodEnd, freeDuration.getDuration()));
        }
      }
      
      if (period.getEnd().after(lastPeriodEnd)) {
        lastPeriodEnd = period.getEnd();
      }
    }
    return fb;
  }
}

代码示例来源:origin: org.mnode.ical4j/ical4j

newPeriodStart = period.getStart();
if (getEnd().after(period.getEnd())) {
  newPeriodEnd = getEnd();

代码示例来源:origin: org.bedework.ical4j/ical4j

newPeriodStart = period.getStart();
if (getEnd().after(period.getEnd())) {
  newPeriodEnd = getEnd();

代码示例来源:origin: net.oneandone.ical4j/ical4j

newPeriodStart = period.getStart();
if (getEnd().after(period.getEnd())) {
  newPeriodEnd = getEnd();

代码示例来源:origin: org.bedework/bw-ical4j-cl

newPeriodStart = period.getStart();
if (getEnd().after(period.getEnd())) {
  newPeriodEnd = getEnd();

代码示例来源:origin: 1and1/cosmo

Period period = periodIt.next();
if(filter.getPeriod().getStart().before(period.getEnd()) &&
  filter.getPeriod().getEnd().after(period.getStart())) {
  return true;

代码示例来源:origin: net.oneandone.cosmo/cosmo-core

Period period = periodIt.next();
if(filter.getPeriod().getStart().before(period.getEnd()) &&
  filter.getPeriod().getEnd().after(period.getStart())) {
  return true;

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

if (!period.getStart().after(getStart())) {
  newPeriodStart = period.getEnd();
  newPeriodEnd = getEnd();

代码示例来源:origin: org.bedework/bw-ical4j-cl

if (!period.getStart().after(getStart())) {
  newPeriodStart = period.getEnd();
  newPeriodEnd = getEnd();

代码示例来源:origin: net.oneandone.ical4j/ical4j

if (!period.getStart().after(getStart())) {
  newPeriodStart = period.getEnd();
  newPeriodEnd = getEnd();

代码示例来源:origin: org.mnode.ical4j/ical4j

if (!period.getStart().after(getStart())) {
  newPeriodStart = period.getEnd();
  newPeriodEnd = getEnd();

相关文章