
public class RegionInheritance extends Object
| Constructor and Description |
|---|
RegionInheritance() |
| Modifier and Type | Method and Description |
|---|---|
static String |
findCommonParent(String region1,
String region2)
Finds the first region which is a common parent of two regions.
|
static List<String> |
getAllAncestors(String child)
Returns a set of all ancestors of a given region, including the region
itself, in order of inheritance (ie, this region first, top-most region
last).
|
static Set<String> |
getImmediateParents(String region)
Returns the set of immediate parents of a given region, not including
this region.
|
static boolean |
isParentOf(String parent,
String child)
Returns true if parent is equal to the child or is an ancestor.
|
public static String findCommonParent(String region1, String region2)
region1 - region2 - public static List<String> getAllAncestors(String child)
child - public static Set<String> getImmediateParents(String region)
region - Copyright © 2018. All rights reserved.