Hello, Thanks for this addon <3 I get deprecated for ``` calendar.addEntry

Hello, Thanks for this addon <3
I get deprecated for

calendar.addEntry(entry);

in version 4.1.2
However If I use the provider :

List<? extends Entry> collect = calendar.getEntryProvider().fetchAll()
							.collect(Collectors.toList());
					collect.add(entry);

I get:

The method add(capture#4-of ? extends Entry) in the type List<capture#4-of ? extends Entry> is not applicable for the arguments (Entry)

Hi,

that is unfortunately one of my main issues with Java generics (? is not ?), but anyway the solution here is to simply change the type of your list to

List<Entry> collect = ...;

Then you can add any entry to it.

But please keep in mind, that adding entries to the list created from the steam will not change the internal cache of the entry provider. If you want to replace the old calendar.addEntry() you have call something like this instead:

InMemoryEntryProvider<Entry> provider = calendar.getEntryProvider();
provider.addEntry(entry);
provider.refreshAll(); // only for LazyInMemory!

(Please see the examples or migration guide for details)

Yes, Thanks for your reply.
Works perfectly! :)