All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.fortuna.ical4j.extensions.strategy.Strategy Maven / Gradle / Ivy

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