https://github.com/marschall/lists
Special purpose implementations of java.util.List
https://github.com/marschall/lists
Last synced: 3 months ago
JSON representation
Special purpose implementations of java.util.List
- Host: GitHub
- URL: https://github.com/marschall/lists
- Owner: marschall
- Created: 2015-09-20T11:28:24.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-10-02T17:08:26.000Z (over 7 years ago)
- Last Synced: 2025-01-16T02:44:58.929Z (5 months ago)
- Language: Java
- Size: 73.2 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Lists [](https://travis-ci.org/marschall/lists) [](https://maven-badges.herokuapp.com/maven-central/com.github.marschall/lists) [](http://www.javadoc.io/doc/com.github.marschall/lists)
=====Special purpose implementations of `java.util.List` that in the right niche use case can be much more efficient than implementations shipped with the JDK.
```xml
com.github.marschall
lists
1.2.0```
The implementations have optimized implementations of `java.util.Spliterator`.
The implementations support serialization but this has not been optimized.Currently includes classes:
- SingletonList
- Like Collections.singletonList but mutable
- RepeatingList
- one element repeated several times, immutable
- RepeatingList
- a map function applied to an other list, just a view
- RepeatingList
- a Lisp-style list with a head and a tail
All methods are below 325 byte and should therefore HotSpot should be able to inline them if they are hot.
None of the lists or iterators are fail-fast.