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

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

The newest version!
package net.fortuna.ical4j.extensions.strategy;

import net.fortuna.ical4j.model.Prototype;

import java.util.Optional;

public abstract class AbstractStrategy implements Strategy {

    private Prototype prototype;

    @Override
    public Strategy withPrototype(Prototype prototype) {
        this.prototype = prototype;
        return this;
    }

    protected Optional> getPrototype() {
        return Optional.ofNullable(prototype);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy