Javolution 6.0.0 java
|
Packages | |
package | function |
package | internal |
package | service |
Classes | |
class | FastBitSet |
class | FastCollection |
class | FastMap |
class | FastSet |
class | FastSortedMap |
class | FastSortedSet |
class | FastSortedTable |
class | FastTable |
class | Index |
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.
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. [code] 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); [/code]