Modifier and Type | Field and Description |
---|---|
static java.lang.String |
sep |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
static java.util.Map<TreeIndex,TreeIndex> |
group(java.util.Collection<TreeIndex> groupingIndexes,
java.util.Collection<TreeIndex> toBeGroupedIndexes) |
boolean |
hasChild(TreeIndex childCandidateTreeIndex) |
int |
hashCode() |
boolean |
isTree() |
boolean |
isTreeRoot() |
static TreeIndex |
NewInstance(java.lang.String treeIndex) |
static TreeIndex |
NewInstance(TaxonNode node) |
static java.util.List<TreeIndex> |
NewListInstance(java.util.List<java.lang.String> stringList) |
TreeIndex |
parent()
Returns a new TreeIndex instance which represents the parent of this tree index.
|
java.util.List<java.lang.Integer> |
parentNodeIds(boolean includeRoot)
Returns a list of integer based tree node ids of all ancestors.
|
java.util.List<java.lang.String> |
parentNodeIds(boolean includeRoot,
boolean includeTree)
Returns a list of string based tree node ids of all ancestors.
|
static java.util.List<TreeIndex> |
sort(java.util.Collection<TreeIndex> treeIndexSet)
Creates a list for the given tree indexes and sorts them in ascending
order.
|
static java.util.List<TreeIndex> |
sortDesc(java.util.Collection<TreeIndex> treeIndexSet)
Creates a list for the given tree indexes and sorts them in descending
order.
|
java.lang.String |
toString() |
static java.util.List<java.lang.String> |
toString(java.util.Collection<TreeIndex> treeIndexes) |
static java.lang.String |
toString(TreeIndex treeIndex)
Null save toString method.
|
public static TreeIndex NewInstance(java.lang.String treeIndex)
public static java.util.List<TreeIndex> NewListInstance(java.util.List<java.lang.String> stringList)
public boolean hasChild(TreeIndex childCandidateTreeIndex)
public TreeIndex parent()
public boolean isTreeRoot()
public boolean isTree()
public java.util.List<java.lang.String> parentNodeIds(boolean includeRoot, boolean includeTree)
includeRoot
- if the root node which has no data attached should be includedincludeTree
- if the tree node which precedes the treeindex representing the tree should be includedpublic java.util.List<java.lang.Integer> parentNodeIds(boolean includeRoot)
treeIndex
- the tree indexincludeRoot
- if the root node which has no data attached should be includedpublic static java.util.List<TreeIndex> sort(java.util.Collection<TreeIndex> treeIndexSet)
treeIndexSet
- public static java.util.List<TreeIndex> sortDesc(java.util.Collection<TreeIndex> treeIndexSet)
public static java.util.Map<TreeIndex,TreeIndex> group(java.util.Collection<TreeIndex> groupingIndexes, java.util.Collection<TreeIndex> toBeGroupedIndexes)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public static java.lang.String toString(TreeIndex treeIndex)
public static java.util.List<java.lang.String> toString(java.util.Collection<TreeIndex> treeIndexes)
Copyright © 2007-2020 EDIT. All Rights Reserved.