Skip to content

Immutable maps ans collections for Kotlin and Java without additional dependencies.

License

Notifications You must be signed in to change notification settings

PlateStack/immutable-collections

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Immutable Collections for Kotlin and Java

This project was inspired on kotlinx.collections.immutable so it shares some concepts from that project.

The main difference is that PlateStack's immutable-collections does not requires any additional dependency, everything is built on top of the Java 8 collection API.

This project also has more extension functions to blend with Kotlin's STD lib. For example, If you see a toList() from Kotlin's STD LIB you should also see a toImmutableList() from PlateStack's Immutable Collections.

This library also introduces immutable interfaces for SortedSet, NavigableSet, SortedMap and NavigableMap. Kotlin has no read-only interface for that types, so our immutable version does not extends the original types but they mimic them without exposing modification methods.

Documentation

The KDoc is shared in the kdoc branch and the JavaDoc in http://platestack.github.io/immutable-collections.

Be aware that locations might change without redirects.

About

Immutable maps ans collections for Kotlin and Java without additional dependencies.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages