本文整理汇总了Java中net.fortuna.ical4j.model.PropertyList.remove方法的典型用法代码示例。如果您正苦于以下问题:Java PropertyList.remove方法的具体用法?Java PropertyList.remove怎么用?Java PropertyList.remove使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.fortuna.ical4j.model.PropertyList
的用法示例。
在下文中一共展示了PropertyList.remove方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setRecurrenceDates
import net.fortuna.ical4j.model.PropertyList; //导入方法依赖的package包/类
public void setRecurrenceDates(DateList dates) {
if (dates == null) {
return;
}
PropertyList<RDate> rdateList = getEvent().getProperties().getProperties(Property.RDATE);
for (RDate rdate : rdateList) {
rdateList.remove(rdate);
}
if (dates.isEmpty()) {
return;
}
RDate rDate = new RDate(dates);
setDateListPropertyValue(rDate);
rdateList.add(rDate);
}
示例2: setExceptionDates
import net.fortuna.ical4j.model.PropertyList; //导入方法依赖的package包/类
public void setExceptionDates(DateList dates) {
if (dates == null) {
return;
}
PropertyList<Property> properties = getEvent().getProperties();
for (Property exdate : properties.getProperties(Property.EXDATE)) {
properties.remove(exdate);
}
if (dates.isEmpty()) {
return;
}
ExDate exDate = new ExDate(dates);
setDateListPropertyValue(exDate);
properties.add(exDate);
}
示例3: setRecurrenceDates
import net.fortuna.ical4j.model.PropertyList; //导入方法依赖的package包/类
/**
* Sets recurrence dates.
* @param dates The date list.
*/
public void setRecurrenceDates(DateList dates) {
if (dates == null) {
return;
}
PropertyList<Property> pl = getEvent().getProperties();
for (Property rdate : pl.getProperties(Property.RDATE)) {
pl.remove(rdate);
}
if (dates.isEmpty()) {
return;
}
RDate rDate = new RDate(dates);
setDateListPropertyValue(rDate);
pl.add(rDate);
}
示例4: setExceptionDates
import net.fortuna.ical4j.model.PropertyList; //导入方法依赖的package包/类
/**
* Sets exception dates.
* @param dates The date list.
*/
public void setExceptionDates(DateList dates) {
if (dates == null) {
return;
}
PropertyList<Property> properties = getEvent().getProperties();
for (Property exdate : properties.getProperties(Property.EXDATE)) {
properties.remove(exdate);
}
if (dates.isEmpty()) {
return;
}
ExDate exDate = new ExDate(dates);
setDateListPropertyValue(exDate);
properties.add(exDate);
}
示例5: replaceProperty
import net.fortuna.ical4j.model.PropertyList; //导入方法依赖的package包/类
protected static void replaceProperty(PropertyList propertyList, Property property) {
if (property == null) {
return;
}
Property existingProp = propertyList.getProperty(property.getName());
if (existingProp != null) {
propertyList.remove(existingProp);
}
propertyList.add(property);
}
示例6: setRecurrenceRules
import net.fortuna.ical4j.model.PropertyList; //导入方法依赖的package包/类
public void setRecurrenceRules(List<Recur> recurs) {
if (recurs == null) {
return;
}
PropertyList<Property> properties = getEvent().getProperties();
for (Property rrule : properties.getProperties(Property.RRULE)) {
properties.remove(rrule);
}
for (Recur recur : recurs) {
properties.add(new RRule(recur));
}
}
示例7: setExceptionRules
import net.fortuna.ical4j.model.PropertyList; //导入方法依赖的package包/类
public void setExceptionRules(List<Recur> recurs) {
if (recurs == null) {
return;
}
PropertyList<Property> properties = getEvent().getProperties();
for (Property exrule : properties.getProperties(Property.EXRULE)) {
properties.remove(exrule);
}
for (Recur recur : recurs) {
properties.add(new ExRule(recur));
}
}
示例8: setRecurrenceRules
import net.fortuna.ical4j.model.PropertyList; //导入方法依赖的package包/类
/**
* Sets recurrence rules.
* @param recurs List with recurrence rules.
*/
public void setRecurrenceRules(List<Recur> recurs) {
if (recurs == null) {
return;
}
PropertyList<Property> pl = getEvent().getProperties();
for (Property rrule : pl.getProperties(Property.RRULE)) {
pl.remove(rrule);
}
for (Recur recur : recurs) {
pl.add(new RRule(recur));
}
}
示例9: setExceptionRules
import net.fortuna.ical4j.model.PropertyList; //导入方法依赖的package包/类
/**
* Sets exception rules.
* @param recurs The list.
*/
public void setExceptionRules(List<Recur> recurs) {
if (recurs == null) {
return;
}
PropertyList<Property> pl = getEvent().getProperties();
for (Property exrule : pl.getProperties(Property.EXRULE)) {
pl.remove(exrule);
}
for (Recur recur : recurs) {
pl.add(new ExRule(recur));
}
}