Tree Root project

Parent project for Tree Root library.

License

License

GroupId

GroupId

com.mattunderscore.tree.root
ArtifactId

ArtifactId

tree-root
Last Version

Last Version

0.0.9
Release Date

Release Date

Type

Type

pom
Description

Description

Tree Root project
Parent project for Tree Root library.
Source Code Management

Source Code Management

https://github.com/mattunderscorechampion/tree-root

Download tree-root

Filename Size
tree-root-0.0.9.pom 12 KB
Browse

How to add to project

<!-- https://jarcasting.com/artifacts/com.mattunderscore.tree.root/tree-root/ -->
<dependency>
    <groupId>com.mattunderscore.tree.root</groupId>
    <artifactId>tree-root</artifactId>
    <version>0.0.9</version>
    <type>pom</type>
</dependency>
// https://jarcasting.com/artifacts/com.mattunderscore.tree.root/tree-root/
implementation 'com.mattunderscore.tree.root:tree-root:0.0.9'
// https://jarcasting.com/artifacts/com.mattunderscore.tree.root/tree-root/
implementation ("com.mattunderscore.tree.root:tree-root:0.0.9")
'com.mattunderscore.tree.root:tree-root:pom:0.0.9'
<dependency org="com.mattunderscore.tree.root" name="tree-root" rev="0.0.9">
  <artifact name="tree-root" type="pom" />
</dependency>
@Grapes(
@Grab(group='com.mattunderscore.tree.root', module='tree-root', version='0.0.9')
)
libraryDependencies += "com.mattunderscore.tree.root" % "tree-root" % "0.0.9"
[com.mattunderscore.tree.root/tree-root "0.0.9"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

  • linked-tree
  • node-matchers
  • node-selectors
  • string-trees
  • tree-wrappers
  • trees-utilities
  • trees-api
  • trees-api-examples
  • trees-basic-nodes
  • trees-binary
  • trees-immutable
  • trees-integration-tests
  • trees-mutable
  • trees-pathcopy
  • trees-provider
  • trees-spi
  • tree-traversers

#Tree Root

A tree structure and utility library called Tree Root.

####Status This library is sill in an early stage of development. The first major release has not yet been made and the API has not been fixed. No formalised version scheme is currently being followed.

Travis CI: Build Status

Coveralls: Coverage Status

Maven site

API Javadoc

####Binary search tree example

final Trees trees = Trees.get();

final SortingTreeBuilder<Integer, BinaryTreeNode<Integer>> builder = trees
    .treeBuilders()
    .sortingTreeBuilder();
final BinarySearchTree<Integer> tree = builder
    .addElement(2)
    .addElement(1)
    .addElement(3)
    .build(BinarySearchTree.<Integer>typeKey());

tree
    .addElement(4)
    .addElement(6)
    .addElement(5);

final Iterator<Integer> iterator = trees
    .treeIterators()
    .inOrderElementsIterator(tree);

while (iterator.hasNext()) {
    System.out.println("Element: " + iterator.next());
}

This example builds a mutable, binary search tree and iterates over the elements in order, left, root, right, generating the output:

Element: 1
Element: 2
Element: 3
Element: 5
Element: 6

####Documentation

####Targeted Language

The current target is Java 8. Some Java 8 features are being used in the API.

####License

Copyright (c) 2014, 2015 Matthew Champion

Licensed under BSD 3-clause license

Versions

Version
0.0.9
0.0.8