Skip to content

tumatanquang/javolution-backport

Repository files navigation

Javolution Backport

Based on Javolution 5.5.1 source code.

Since version 5.4, the public methods of FastTable and FastList have been marked as final and cannot be overridden.

This is inconvenient because although these two classes (according to the documentation) can use the shared() method to make them thread-safe. However, it does not work and throws a compile error.

This project has removed final to allow overriding of the public methods of these two classes, so you can implement thread-safety in any way you want.

WARNING:

  • Since v5.6.6: The original FastList has been replaced with FastChain!
  • Since v5.6.8: The original FastChain has been replaced with FastSequence!

Suggestions for use:

  • ArrayList can be replaced with FastTable.
  • LinkedList can be replaced with FastSequence.
  • Initialize FastTable / FastSequence:
FastTable table = new FastTable();
FastSequence list = new FastSequence();
FastList list = new FastTable();
FastList list = new FastSequence();

How to build?

Build using Ant with build.xml file taken and modified from version 5.2.5.

To build use: ant -Dexecutable=<javac path of jdk 5 or 6> compile-jdk<5 or 6>.

About

Based on Javolution 5.5.1 source code.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages