public abstract class UpNodeLib extends Object
Constructor and Description |
---|
UpNodeLib() |
Modifier and Type | Method and Description |
---|---|
static <Id,Node extends UpNode<Id>> |
nodes__idDag(com.google.common.collect.ImmutableSet<Node> nodes)
Create an IdDag from an UpNode iterable.
|
static <Id,Node extends UpNode<Id>> |
nodes__idGraph(Iterable<Node> nodes)
Create an IdGraph from an UpNode iterable.
|
static <Id,Node extends UpNode<Id>> |
nodes__ids(Iterable<Node> nodes)
Collect all of the ids and parent ids in an UpNode iterable.
|
static <Id,Node extends UpNode<Id>> |
nodes__idTree(com.google.common.collect.ImmutableSet<Node> nodes)
Create an IdTree from an UpNode iterable.
|
static <Id,Node extends UpNode<Id>> |
nodes__nodeMap(com.google.common.collect.ImmutableSet<Node> nodes)
Convert an UpNode set into a mapping between id and node.
|
static <Id,Node extends UpNode<Id>> |
nodes__parentMap(Iterable<Node> nodes)
Convert an UpNode iterable into a mapping from id to parent ids.
|
static <Id> UpNode<Id> |
upNode(Id id,
Id... parentIds)
Create an UpNode from its id and a parent id varargs array.
|
static <Id> UpNode<Id> |
upNode(Id id,
Iterable<Id> parentIds)
Create an UpNode from its id and a parent id iterable.
|
public static <Id> UpNode<Id> upNode(Id id, Iterable<Id> parentIds)
@SafeVarargs public static <Id> UpNode<Id> upNode(Id id, Id... parentIds)
public static <Id,Node extends UpNode<Id>> com.google.common.collect.ImmutableSet<Id> nodes__ids(Iterable<Node> nodes)
public static <Id,Node extends UpNode<Id>> com.google.common.collect.ImmutableSetMultimap<Id,Id> nodes__parentMap(Iterable<Node> nodes)
public static <Id,Node extends UpNode<Id>> com.google.common.collect.ImmutableBiMap<Id,Node> nodes__nodeMap(com.google.common.collect.ImmutableSet<Node> nodes)
public static <Id,Node extends UpNode<Id>> IdGraph<Id> nodes__idGraph(Iterable<Node> nodes)
public static <Id,Node extends UpNode<Id>> IdDag<Id> nodes__idDag(com.google.common.collect.ImmutableSet<Node> nodes)
Copyright © 2014. All rights reserved.