If you like this kind of thing, Bifurcan [0] is a Java library with implementations of RBB-trees and related (fast) immutable data structures.
[0] https://github.com/lacuna/bifurcan