jbee / jadamant

persistent (immutable) data structures library for Java
7 stars 1 forks source link

Java-adamant

A library enhancing the JRE with the core functionality it should have had for a long time.

The core ideas are:

About

'jadamant' is a made-up word conbined out of 'Java' and 'Adamant'. Inspired by the Master of Orion II Adamantium plating. Adamant symbolises the immutable solid character and thereby the philosophy of this project.

Status

The 0.1 beta is planed to be released somewhen 2012. Until then there might be major changes to the API. But the core collection API is nearly stable pretty much done implemented and covered with tests.

Feal free to contact me and get to know more about the current state.

Notable facts about jadamant's persistent collections

This migth sound unfamiliar for a moment. Hopefully there will be a lot of examples soon to show why this is the better approch.

Working with Lists

// list construction
List.with.noElements(); // a empty list
List.with.element(1); // a list with a single element - the integer 1
List.with.elements(1,2,3,4); // a list holding the numbers 1 to 4

to be continued...

You should have a look to the unit-tests in the de.jbee.lang and de.jbee.lang.seq package to see the current API in use.