A true primitive collocations library for Java 8+ backed by manual native memory management.
- Java 8+
There are currently the following collection family implementations for all Java primitives as well as for user defined structs.
- Array2D implementations can be found in .../impl/array2ds/
- Array implementations can be found in .../impl/arrays/
- Dequeue implementations can be found in .../impl/dequeues/
- Fixed Queue implementations can be found in .../impl/fixedqueues/
- Heap implementations can be found in .../impl/heaps/
- List implementations can be found in .../impl/lists/
- Map implementations can be found in .../impl/maps/
- Queue implementations can be found in .../impl/queues/
- Ring Buffer implementations can be found in .../impl/ringbuffers/
- Set implementations can be found in .../impl/sets/
- Stack implementations can be found in .../impl/stacks/
This library facilitates true native collections though the use of sun.misc.Unsafe.
See:
- UnsafeAccess - A utility class to access the
sun.misc.Unsafeclass. - UnsafeMemory - A wrapper class to facilitate calling
sun.misc.Unsafemethods without trigguring a spam of JVM warnings. - SystemAllocator - A singleton allocator for aligned native memory.