public abstract class IdTreeLib extends Object
Constructor and Description |
---|
IdTreeLib() |
Modifier and Type | Method and Description |
---|---|
static <Id> IdTree<Id> |
fromChildMap(Id... alternatingIdsAndChildIds)
Create an IdTree from a mapping from id to child ids (specified as alternating keys and values), assuming all ids are in that mapping.
|
static <Id> IdTree<Id> |
fromChildMap(com.google.common.collect.Multimap<Id,Id> id__childIds)
Create an IdTree from a mapping from id to child ids (specified as a multimap), assuming all ids are in that mapping.
|
static <Id> IdTree<Id> |
fromChildMap(Set<Id> idSet,
Id... alternatingIdsAndChildIds)
Create an IdTree from the tree's id set and a mapping from id to child ids (specified as alternating keys and values).
|
static <Id> IdTree<Id> |
fromChildMap(Set<Id> idSet,
com.google.common.collect.Multimap<Id,Id> id__childIds)
Create an IdTree from the tree's id set and a mapping from id to child ids (specified as a multimap).
|
static <Id> IdTree<Id> |
fromParentMap(Id... alternatingIdsAndParentIds)
Create an IdTree from a mapping from id to parent ids (specified as alternating keys and values), assuming all ids are in that mapping.
|
static <Id> IdTree<Id> |
fromParentMap(com.google.common.collect.Multimap<Id,Id> id__parentIds)
Create an IdTree from a mapping from id to parent ids (specified as a multimap), assuming all ids are in that mapping.
|
static <Id> IdTree<Id> |
fromParentMap(Set<Id> idSet,
Id... alternatingIdsAndParentIds)
Create an IdTree from the tree's id set and a mapping from id to parent ids (specified as alternating keys and values).
|
static <Id> IdTree<Id> |
fromParentMap(Set<Id> idSet,
com.google.common.collect.Multimap<Id,Id> id__parentIds)
Create an IdTree from the tree's id set and a mapping from id to parent ids (specified as a multimap).
|
public static <Id> IdTree<Id> fromParentMap(Set<Id> idSet, com.google.common.collect.Multimap<Id,Id> id__parentIds)
public static <Id> IdTree<Id> fromParentMap(com.google.common.collect.Multimap<Id,Id> id__parentIds)
@SafeVarargs public static <Id> IdTree<Id> fromParentMap(Set<Id> idSet, Id... alternatingIdsAndParentIds)
@SafeVarargs public static <Id> IdTree<Id> fromParentMap(Id... alternatingIdsAndParentIds)
public static <Id> IdTree<Id> fromChildMap(Set<Id> idSet, com.google.common.collect.Multimap<Id,Id> id__childIds)
public static <Id> IdTree<Id> fromChildMap(com.google.common.collect.Multimap<Id,Id> id__childIds)
@SafeVarargs public static <Id> IdTree<Id> fromChildMap(Set<Id> idSet, Id... alternatingIdsAndChildIds)
@SafeVarargs public static <Id> IdTree<Id> fromChildMap(Id... alternatingIdsAndChildIds)
Copyright © 2014. All rights reserved.