本文整理了Java中net.fortuna.ical4j.model.property.Duration.setDuration()
方法的一些代码示例,展示了Duration.setDuration()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Duration.setDuration()
方法的具体详情如下:
包路径:net.fortuna.ical4j.model.property.Duration
类名称:Duration
方法名:setDuration
暂无
代码示例来源:origin: org.bedework.ical4j/ical4j
/**
* @param aList a list of parameters for this component
* @param duration a duration value
*/
public Duration(final ParameterList aList, final Dur duration) {
super(DURATION, aList, PropertyFactoryImpl.getInstance());
setDuration(duration);
}
代码示例来源:origin: org.bedework/bw-ical4j-cl
/**
* @param aList a list of parameters for this component
* @param duration a duration value
*/
public Duration(final ParameterList aList, final Dur duration) {
super(DURATION, aList, PropertyFactoryImpl.getInstance());
setDuration(duration);
}
代码示例来源:origin: org.mnode.ical4j/ical4j
/**
* @param aList a list of parameters for this component
* @param duration a duration value
*/
public Duration(final ParameterList aList, final TemporalAmount duration) {
super(DURATION, aList, new Factory());
setDuration(duration);
}
代码示例来源:origin: net.oneandone.ical4j/ical4j
/**
* @param aList a list of parameters for this component
* @param duration a duration value
*/
public Duration(final ParameterList aList, final Dur duration) {
super(DURATION, aList, PropertyFactoryImpl.getInstance());
setDuration(duration);
}
代码示例来源:origin: ical4j/ical4j
/**
* @param aList a list of parameters for this component
* @param duration a duration value
*/
public Duration(final ParameterList aList, final TemporalAmount duration) {
super(DURATION, aList, new Factory());
setDuration(duration);
}
代码示例来源:origin: org.bedework/bw-ical4j-cl
/**
* Constructs a new duration representing the time between the specified start date and end date.
* @param start the starting time for the duration
* @param end the end time for the duration
*/
public Duration(final Date start, final Date end) {
super(DURATION, PropertyFactoryImpl.getInstance());
setDuration(new Dur(start, end));
}
代码示例来源:origin: org.bedework.ical4j/ical4j
/**
* Constructs a new duration representing the time between the specified start date and end date.
*
* @param start the starting time for the duration
* @param end the end time for the duration
*/
public Duration(final Date start, final Date end) {
super(DURATION, PropertyFactoryImpl.getInstance());
setDuration(new Dur(start, end));
}
代码示例来源:origin: net.oneandone.ical4j/ical4j
/**
* Constructs a new duration representing the time between the specified start date and end date.
*
* @param start the starting time for the duration
* @param end the end time for the duration
*/
public Duration(final Date start, final Date end) {
super(DURATION, PropertyFactoryImpl.getInstance());
setDuration(new Dur(start, end));
}
代码示例来源:origin: ical4j/ical4j
/**
* Constructs a new duration representing the time between the specified start date and end date.
*
* @param start the starting time for the duration
* @param end the end time for the duration
*/
public Duration(final Date start, final Date end) {
super(DURATION, new Factory());
setDuration(TemporalAmountAdapter.fromDateRange(start, end).getDuration());
}
代码示例来源:origin: org.mnode.ical4j/ical4j
/**
* Constructs a new duration representing the time between the specified start date and end date.
*
* @param start the starting time for the duration
* @param end the end time for the duration
*/
public Duration(final Date start, final Date end) {
super(DURATION, new Factory());
setDuration(TemporalAmountAdapter.fromDateRange(start, end).getDuration());
}
代码示例来源:origin: net.oneandone.cosmo/cosmo-core
public void setDisplayAlarmDuration(Dur dur) {
VAlarm alarm = getDisplayAlarm();
if(alarm==null) {
return;
}
Duration duration = (Duration) alarm.getProperties().getProperty(
Property.DURATION);
if (dur == null) {
if (duration != null) {
alarm.getProperties().remove(duration);
}
return;
}
if (duration == null) {
duration = new Duration();
alarm.getProperties().add(duration);
}
duration.setDuration(dur);
}
代码示例来源:origin: 1and1/cosmo
public void setDisplayAlarmDuration(Dur dur) {
VAlarm alarm = getDisplayAlarm();
if(alarm==null) {
return;
}
Duration duration = (Duration) alarm.getProperties().getProperty(
Property.DURATION);
if (dur == null) {
if (duration != null) {
alarm.getProperties().remove(duration);
}
return;
}
if (duration == null) {
duration = new Duration();
alarm.getProperties().add(duration);
}
duration.setDuration(dur);
}
代码示例来源:origin: net.oneandone.cosmo/cosmo-core
duration.setDuration(dur);
代码示例来源:origin: 1and1/cosmo
duration.setDuration(dur);
内容来源于网络,如有侵权,请联系作者删除!