Package javolution.util

High-performance collection classes with worst case execution time behavior documented.

See: Description

Package javolution.util Description

High-performance collection classes with worst case execution time behavior documented.

Whereas Java current evolution leads to more and more classes being parts of the standard library; Javolution approach is quite the opposite. It aims to provide only the quintessential classes from which all others can be derived.

FAQ:

  1. Does Javolution provide immutable collections similar to the ones provided by Scala or .NET ?

    Using Javolution you may return an Immutable reference (const reference) over any object which cannot be modified including collections or maps.

    public class UnitSystem {
        Set<Unit> units;
        public UnitSystem(Immutable<Set<Unit>> units) {
           this.units = units.value(); // Defensive copy unnecessary (immutable)
        }
    }
    ...
    Immutable<Set<Unit>> unitsMKSA = new FastSet<Unit>().addAll(M, K, S, A).toImmutable();
    UnitSystem MKSA = new UnitSystem(unitsMKSA);
    

Copyright © 2005-2013 Javolution. All Rights Reserved.