
net.fortuna.ical4j.extensions.strategy.Strategy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ical4j-extensions Show documentation
Show all versions of ical4j-extensions Show documentation
Support for additional non-standard iCalendar objects
The newest version!
package net.fortuna.ical4j.extensions.strategy;
import net.fortuna.ical4j.model.Prototype;
import java.util.function.Supplier;
/**
* A strategy is an opinionated approach to creating iCalendar and vCard objects.
*
* Strategy implementation MUST provide a new object instance for every call to
* the {@link Supplier#get()} method.
*
* Some strategy implementations may optionally support prototype instances that
* are used as the baseline object for supplied instances.
*
* @param the applicable object type
*/
public interface Strategy extends Supplier {
default Strategy withPrototype(Prototype prototype) {
throw new UnsupportedOperationException("Prototypes not supported for this strategy");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy