An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

        

Lists [![Build Status](https://travis-ci.org/marschall/lists.svg)](https://travis-ci.org/marschall/lists) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.github.marschall/lists/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.github.marschall/lists) [![Javadocs](http://www.javadoc.io/badge/com.github.marschall/lists.svg)](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.