All Downloads are FREE. Search and download functionalities are using the official Maven repository.

javaslang.collection.package-info Maven / Gradle / Ivy

There is a newer version: 2.1.0-alpha
Show newest version
/**
 * Purely functional collections based on {@linkplain javaslang.collection.Traversable}.
 *
 * 

Performance Characteristics of Javaslang Collections

* * * * * * * * * * * * * * * * * * * * * * *
Time Complexity of Sequential Operations
 head()tail()get(int)update(int, T)prepend(T)append(T)
{@linkplain javaslang.collection.Array}constlinearconstconstlinearlinear
{@linkplain javaslang.collection.CharSeq}constlinearconstlinearlinearlinear
{@linkplain javaslang.collection.Iterator}constconst
{@linkplain javaslang.collection.List}constconstlinearlinearconstlinear
{@linkplain javaslang.collection.Queue}constconstalinearlinearconstconst
{@linkplain javaslang.collection.Stream}constconstlinearlinearconstlazyconstlazy
{@linkplain javaslang.collection.Vector}consteffconsteffconsteffconsteffconsteffconsteff
*
* * * * * * * * * * * * * * * * * * * * *
Time Complexity of Map/Set Operations
 contains/Keyadd/putremovemin
{@linkplain javaslang.collection.HashMap}consteffconsteffconstefflinear
{@linkplain javaslang.collection.HashSet}consteffconsteffconstefflinear
{@linkplain javaslang.collection.LinkedHashMap}consteffconstefflinearlinear
{@linkplain javaslang.collection.LinkedHashSet}consteffconstefflinearlinear
{@linkplain javaslang.collection.Tree}loglogloglog
{@linkplain javaslang.collection.TreeMap}loglogloglog
{@linkplain javaslang.collection.TreeSet}loglogloglog
*
*
    *
  • const · constant time
  • *
  • consta · amotized constant time, few operations may take longer
  • *
  • consteff · effectively constant time, depending on assumptions like distribution of hash keys
  • *
  • constlazy · lazy constant time, the operation is deferred
  • *
  • log · logarithmic time
  • *
  • linear · linear time
  • *
* * @since 1.1.0 */ package javaslang.collection;




© 2015 - 2024 Weber Informatics LLC | Privacy Policy