net.fortuna.ical4j.transform.calendar.MethodUpdate Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ical4j Show documentation
Show all versions of ical4j Show documentation
A Java library for reading and writing iCalendar (*.ics) files
package net.fortuna.ical4j.transform.calendar;
import net.fortuna.ical4j.model.Calendar;
import net.fortuna.ical4j.model.property.Method;
import net.fortuna.ical4j.transform.Transformer;
import java.util.function.BiFunction;
/**
* Created by fortuna on 19/07/2017.
* @deprecated use {@link net.fortuna.ical4j.model.PropertyContainer#with(BiFunction, Object)} and
* {@link net.fortuna.ical4j.model.CalendarPropertyModifiers#METHOD} instead.
*/
@Deprecated
public class MethodUpdate implements Transformer {
private final Method newMethod;
public MethodUpdate(Method method) {
this.newMethod = method;
}
@Override
public Calendar apply(Calendar object) {
return object.replace(newMethod);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy