Skip navigation links

Package javaslang.collection

Purely functional collections based on Traversable.

See: Description

Package javaslang.collection Description

Purely functional collections based on Traversable.

Performance Characteristics of Javaslang Collections

Time Complexity of Sequential Operations
  head() tail() get(int) update(int, T) prepend(T) append(T)
Arrayconstlinearconstconstlinearlinear
CharSeqconstlinearconstlinearlinearlinear
Iteratorconstconst
Listconstconstlinearlinearconstlinear
Queueconstconstalinearlinearconstconst
Streamconstconstlinearlinearconstlazyconstlazy
Vectorconsteffconsteffconsteffconsteffconsteffconsteff

Time Complexity of Map/Set Operations
  contains/Key add/put remove min
HashMapconsteffconsteffconstefflinear
HashSetconsteffconsteffconstefflinear
LinkedHashMapconsteffconstefflinearlinear
LinkedHashSetconsteffconstefflinearlinear
Treeloglogloglog
TreeMaploglogloglog
TreeSetloglogloglog

Since:
1.1.0
Skip navigation links

Copyright © 2016. All Rights Reserved.