javolution.util.package-info Maven / Gradle / Ivy
Show all versions of javolution-core-java-msftbx Show documentation
/**
High-performance collection classes with {@link javolution.lang.Realtime
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:
- Does Javolution provide immutable collections similar to
the ones provided by Scala or .NET ?
Using Javolution you may return an {@link javolution.lang.Immutable Immutable}
view (const reference) over any object which cannot be modified including collections or maps.
[code]
public class UnitSystem {
final FastSet units;
public UnitSystem(Unit... units) {
this.units = FastSet.of(units);
}
Immutable> getUnits() { // Immutable view.
return units.immutable();
}
}
...
UnitSystem MKSA = new UnitSystem(M, K, S, A);
[/code]
*/
package javolution.util;