Lists.addElements(T...elements) was adding elements at the beginning of

a list instead of the end.
This commit is contained in:
Speiger 2021-06-27 17:23:34 +02:00
parent e6c4d43f6e
commit 626ab29fc7
2 changed files with 2 additions and 1 deletions

View File

@ -11,6 +11,7 @@
- Added: CustomOpenHashSets now implement foreach and have less overhead.
- Added: ImmutableOpenHashMap that is not editable (is linked by default for fast iteration)
- Added: Maps can now be created through the interface.
- Fixed: Lists.addElements(T...elements) was adding elements at the beginning of a list instead of the end.
### Version 0.3.1
- Fixed: containsKey & containsValue in HashMaps were deprecated for Object Variants.

View File

@ -152,7 +152,7 @@ public interface LIST KEY_GENERIC_TYPE extends COLLECTION KEY_GENERIC_TYPE, List
* @param a the elements that should be added
* @throws IndexOutOfBoundsException if from is outside of the lists range
*/
public default void addElements(KEY_TYPE... a) { addElements(0, a, 0, a.length); }
public default void addElements(KEY_TYPE... a) { addElements(size(), a, 0, a.length); }
/**
* A function to fast add elements to the list