diff --git a/Changelog.md b/Changelog.md index 8092eeb..c2e2d92 100644 --- a/Changelog.md +++ b/Changelog.md @@ -3,7 +3,12 @@ ### Version 0.6.0 - Added: addOrGet for sets. - Added: Async API which allows to easily execute Iterables/Collections offthread without the complexity. -- Added: ConcurrentArrayLists and tests for it +- Added: CopyOnWriteArrayList and tests for it +- Added: Support up to Java17. +- Added: Build System now adds module-info if the Running JVM is 9 or higher +- Added: ArrayList.of(Class, size) that allows you to allocate a size right at the creation of the List without having to create a wrapper array. +- Added: A ConcurrentHashMap implementation. +- Fixed: containsValue in the HashMap wouldn't check the nullKey ### Version 0.5.3 - Added: OrderedMap/Set diff --git a/src/builder/resources/speiger/assets/collections/templates/utils/AsyncBuilder.template b/src/builder/resources/speiger/assets/collections/templates/utils/AsyncBuilder.template index e74a60e..2614807 100644 --- a/src/builder/resources/speiger/assets/collections/templates/utils/AsyncBuilder.template +++ b/src/builder/resources/speiger/assets/collections/templates/utils/AsyncBuilder.template @@ -102,6 +102,16 @@ public class ASYNC_BUILDER KEY_GENERIC_TYPE this.task = task; } + /** + * Helper function that automatically wraps a Iterable into a AsyncBuilder since it forces this collections Iterable. + * @param iterable that should be wrapped + * @Type(T) + * @return a AsyncBuilder with the iterable wrapped + */ + public static GENERIC_KEY_BRACES ASYNC_BUILDER KEY_GENERIC_TYPE of(Iterable iterable) { + return new ASYNC_BUILDERBRACES(ITERABLES.wrap(iterable)); + } + /** * Maps the elements to something else * @param mapper the mapping function