本文整理了Java中net.fortuna.ical4j.model.Date.after()
方法的一些代码示例,展示了Date.after()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Date.after()
方法的具体详情如下:
包路径:net.fortuna.ical4j.model.Date
类名称:Date
方法名:after
暂无
代码示例来源:origin: org.bedework.ical4j/ical4j
/**
* Returns the latest applicable timezone observance for the specified date.
* @param date the latest possible date for a timezone observance onset
* @return the latest applicable timezone observance for the specified date or null if there are no applicable
* observances
*/
public final Observance getApplicableObservance(final Date date) {
Observance latestObservance = null;
Date latestOnset = null;
for (final Observance observance : getObservances()) {
final Date onset = observance.getLatestOnset(date);
if (latestOnset == null
|| (onset != null && onset.after(latestOnset))) {
latestOnset = onset;
latestObservance = observance;
}
}
return latestObservance;
}
代码示例来源:origin: org.mnode.ical4j/ical4j
/**
* Returns the latest applicable timezone observance for the specified date.
* @param date the latest possible date for a timezone observance onset
* @return the latest applicable timezone observance for the specified date or null if there are no applicable
* observances
*/
public final Observance getApplicableObservance(final Date date) {
Observance latestObservance = null;
Date latestOnset = null;
for (final Observance observance : getObservances()) {
final Date onset = observance.getLatestOnset(date);
if (latestOnset == null
|| (onset != null && onset.after(latestOnset))) {
latestOnset = onset;
latestObservance = observance;
}
}
return latestObservance;
}
代码示例来源:origin: ical4j/ical4j
/**
* Returns the latest applicable timezone observance for the specified date.
* @param date the latest possible date for a timezone observance onset
* @return the latest applicable timezone observance for the specified date or null if there are no applicable
* observances
*/
public final Observance getApplicableObservance(final Date date) {
Observance latestObservance = null;
Date latestOnset = null;
for (final Observance observance : getObservances()) {
final Date onset = observance.getLatestOnset(date);
if (latestOnset == null
|| (onset != null && onset.after(latestOnset))) {
latestOnset = onset;
latestObservance = observance;
}
}
return latestObservance;
}
代码示例来源:origin: net.oneandone.ical4j/ical4j
/**
* Returns the latest applicable timezone observance for the specified date.
* @param date the latest possible date for a timezone observance onset
* @return the latest applicable timezone observance for the specified date or null if there are no applicable
* observances
*/
public final Observance getApplicableObservance(final Date date) {
Observance latestObservance = null;
Date latestOnset = null;
for (final Observance observance : getObservances()) {
final Date onset = observance.getLatestOnset(date);
if (latestOnset == null
|| (onset != null && onset.after(latestOnset))) {
latestOnset = onset;
latestObservance = observance;
}
}
return latestObservance;
}
代码示例来源:origin: org.bedework/bw-ical4j-cl
/**
* Returns the latest applicable timezone observance for the specified date.
* @param date the latest possible date for a timezone observance onset
* @return the latest applicable timezone observance for the specified date or null if there are no applicable
* observances
*/
public final Observance getApplicableObservance(final Date date) {
Observance latestObservance = null;
Date latestOnset = null;
for (final Iterator i = getObservances().iterator(); i.hasNext();) {
final Observance observance = (Observance) i.next();
final Date onset = observance.getLatestOnset(date);
if (latestOnset == null
|| (onset != null && onset.after(latestOnset))) {
latestOnset = onset;
latestObservance = observance;
}
}
return latestObservance;
}
代码示例来源:origin: net.oneandone.cosmo/cosmo-core
if (!startRange.after(start)) {
return startRange;
代码示例来源:origin: 1and1/cosmo
if (!startRange.after(start)) {
return startRange;
代码示例来源:origin: ical4j/ical4j
final Date candidateSeed = Dates.getInstance(cal.getTime(), value);
if (getUntil() != null && candidate != null && candidate.after(getUntil())) {
break;
if (!candidate.after(startDate)) {
invalidCandidateCount++;
} else if (getCount() > 0
break;
} else if (!(getUntil() != null
&& candidate.after(getUntil()))) {
return candidate;
代码示例来源:origin: 1and1/cosmo
private static boolean isEventValid(VEvent event, ValidationConfig config) {
if (config == null) {
LOG.error("ValidationConfig cannot be null");
return false;
}
DtStart startDate = event.getStartDate();
DtEnd endDate = event.getEndDate(true);
if (startDate == null || startDate.getDate() == null
|| endDate != null && startDate.getDate().after(endDate.getDate())) {
return false;
}
for (PropertyValidator validator : values()) {
if (!validator.isValid(event, config)) {
return false;
}
}
return areTimeZoneIdsValid(event);
}
代码示例来源:origin: net.oneandone.cosmo/cosmo-core
private static boolean isEventValid(VEvent event, ValidationConfig config) {
if (config == null) {
LOG.error("ValidationConfig cannot be null");
return false;
}
DtStart startDate = event.getStartDate();
DtEnd endDate = event.getEndDate(true);
if (startDate == null || startDate.getDate() == null
|| endDate != null && startDate.getDate().after(endDate.getDate())) {
return false;
}
for (PropertyValidator validator : values()) {
if (!validator.isValid(event, config)) {
return false;
}
}
return areTimeZoneIdsValid(event);
}
代码示例来源:origin: org.bedework/bw-ical4j-cl
final Date candidateSeed = Dates.getInstance(cal.getTime(), value);
if (getUntil() != null && candidate != null && candidate.after(getUntil())) {
break;
if (!candidate.after(startDate)) {
invalidCandidateCount++;
} else if (getCount() > 0
break;
} else if (!(getUntil() != null
&& candidate.after(getUntil()))) {
return candidate;
代码示例来源:origin: org.bedework.ical4j/ical4j
final Date candidateSeed = Dates.getInstance(cal.getTime(), value);
if (getUntil() != null && candidate != null && candidate.after(getUntil())) {
break;
if (!candidate.after(startDate)) {
invalidCandidateCount++;
} else if (getCount() > 0
break;
} else if (!(getUntil() != null
&& candidate.after(getUntil()))) {
return candidate;
代码示例来源:origin: ical4j/ical4j
/**
*
*/
public void testGetDatesOrdering() {
DateList dl1 = recur.getDates(periodStart, periodEnd, value);
Date prev = null;
Date event = null;
for(int i=0; i<dl1.size(); i++) {
prev = event;
event = (Date) dl1.get(i);
log.debug("Occurence "+i+" at "+event);
assertTrue(prev == null || !prev.after(event));
}
}
代码示例来源:origin: net.oneandone.cosmo/cosmo-core
/**
* Evaluates property.
* @param property The proeprty.
* @param filter The time range filter.
* @return The result.
*/
private boolean evaluate(Property property, TimeRangeFilter filter) {
if(!(property instanceof DateProperty) ) {
return false;
}
DateProperty dateProp = (DateProperty) property;
Date date = dateProp.getDate();
return date.before(filter.getPeriod().getEnd()) &&
date.after(filter.getPeriod().getStart()) ||
date.equals(filter.getPeriod().getStart()) ;
}
代码示例来源:origin: 1and1/cosmo
/**
* Evaluates property.
* @param property The proeprty.
* @param filter The time range filter.
* @return The result.
*/
private boolean evaluate(Property property, TimeRangeFilter filter) {
if(!(property instanceof DateProperty) ) {
return false;
}
DateProperty dateProp = (DateProperty) property;
Date date = dateProp.getDate();
return date.before(filter.getPeriod().getEnd()) &&
date.after(filter.getPeriod().getStart()) ||
date.equals(filter.getPeriod().getStart()) ;
}
代码示例来源:origin: net.oneandone.cosmo/cosmo-core
String firstKey = (String) instances.firstKey();
Instance instance = (Instance) instances.remove(firstKey);
if(instance.getStart().after(rangeStart)) {
if(instance.isOverridden()) {
ModificationUid modUid = new ModificationUidImpl(note, instance.getRid());
代码示例来源:origin: 1and1/cosmo
String firstKey = (String) instances.firstKey();
Instance instance = (Instance) instances.remove(firstKey);
if(instance.getStart().after(rangeStart)) {
if(instance.isOverridden()) {
ModificationUid modUid = new ModificationUidImpl(note, instance.getRid());
代码示例来源:origin: net.oneandone.cosmo/cosmo-core
? event.getStartDate().getDate()
:new Date();
boolean later = eventStartDate.after(now);
int code = later ? TriageStatus.CODE_LATER : TriageStatus.CODE_DONE;
代码示例来源:origin: 1and1/cosmo
? event.getStartDate().getDate()
:new Date();
boolean later = eventStartDate.after(now);
int code = later ? TriageStatus.CODE_LATER : TriageStatus.CODE_DONE;
代码示例来源:origin: org.bedework.caleng/bw-calendar-engine-ical
maxRangeEnd);
if ((rr.rangeEnd == null) || (rr.rangeEnd.after(maxRangeEnd))) {
rr.rangeEnd = maxRangeEnd;
内容来源于网络,如有侵权,请联系作者删除!