From 88808edf01b96f1d1907b9a07ce8e621354edcd8 Mon Sep 17 00:00:00 2001 From: andi Date: Mon, 22 Aug 2022 18:02:18 +0000 Subject: [PATCH] Update 'README.md' --- README.md | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index c7ac0fd..a37b531 100644 --- a/README.md +++ b/README.md @@ -1,19 +1,11 @@ Java collections for primitives (currently only int) released under [MIT](https://opensource.org/licenses/MIT) license. -*IntList* and *LongList* are implementations of lists that store primitive integers/longs. The ints/longs are stored in an int/long array and the class takes care of growing the array as needed. You can trim the list to reduce the memory overhead. No dependencies. +*IntList* and *LongList* are implementations of lists that store primitive integers/longs. The ints/longs are stored in an int/long array and the class takes care of growing the array as needed. You can trim the list to reduce the memory overhead. The feature that separates this implementation from others is that the lists keep track of whether they are sorted. This enables powerfull optimizations for searching, union or retain operations. -The lists support the following operations: +*LongLongHashMap* and *LongObjHashMap* are maps that use primitive longs as keys. + +*Sparse2DLongArray* is a memory efficient alternative to *long[][]*. In contrast to *long[][]* the indices are signed longs, which allows you to have negative keys and keys > 2^31. -* add/remove elements via single and bulk operations -* replace elements -* sort and shuffle -* the lists know whether or not they are sorted and can leverage that knowledge for searching (binary search), union and intersection -* search for elements -* union, intersection, retainIf, retainAll removeIf, removeAll -* clear and trim are separate methods, so that the list can be re-used without having to re-allocate memory -* stream support -* the lists are serializable and cloneable -* the lists are **not** thread-safe # How to use The library is still considered beta. There no pre-build artifacts on Maven Central or JCenter, but you can download them from repo.lucares.org. @@ -23,7 +15,7 @@ Example for Gradle: ```groovy apply plugin: 'maven' repositories { - maven { url 'https://repo.lucares.org/' } + maven { url 'https://repo.lucares.de/' } } dependencies { compile 'org.lucares:primitiveCollections:0.3'