pal.treesearch
public static final class BranchAccess.Utils extends java.lang.Object
Constructor and Description |
---|
BranchAccess.Utils() |
Modifier and Type | Method and Description |
---|---|
static BranchAccess |
getMatching(BranchAccess[] base,
BranchAccess query) |
static BranchAccess |
getMatching(BranchAccess[] base,
java.lang.String[] queryLeftLeaves,
java.lang.String[] queryRightLeaves) |
static boolean |
isContained(java.lang.String[] larger,
java.lang.String[] smaller) |
static boolean |
isIntersection(java.lang.String[] one,
java.lang.String[] two) |
static boolean |
isMatching(BranchAccess branch,
java.lang.String[] queryLeftLeaves,
java.lang.String[] queryRightLeaves) |
static void |
transferAnnotation(BranchAccess[] source,
BranchAccess[] destination)
Transfers the annotation across two independent sets of BranchAccess objects.
|
static void |
transferAnnotation(BranchAccess source,
BranchAccess[] desination) |
static void |
transferAnnotation(java.lang.String[] sourceLeftLeaves,
java.lang.String[] sourceRightLeaves,
java.lang.Object annotation,
BranchAccess[] desination) |
public static final boolean isContained(java.lang.String[] larger, java.lang.String[] smaller)
public static final boolean isIntersection(java.lang.String[] one, java.lang.String[] two)
public static final boolean isMatching(BranchAccess branch, java.lang.String[] queryLeftLeaves, java.lang.String[] queryRightLeaves)
public static final BranchAccess getMatching(BranchAccess[] base, BranchAccess query)
public static final BranchAccess getMatching(BranchAccess[] base, java.lang.String[] queryLeftLeaves, java.lang.String[] queryRightLeaves)
public static final void transferAnnotation(BranchAccess source, BranchAccess[] desination)
public static final void transferAnnotation(java.lang.String[] sourceLeftLeaves, java.lang.String[] sourceRightLeaves, java.lang.Object annotation, BranchAccess[] desination)
public static final void transferAnnotation(BranchAccess[] source, BranchAccess[] destination)
source
- The source of the annotationdestination
- The destination of the annotation