public class ItemTreeBuilder extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
ItemTreeBuilder.IItemTreeBuilderCallback
Interface used to allow interrupting slow builds of encapsulation trees.
|
Constructor and Description |
---|
ItemTreeBuilder() |
Modifier and Type | Method and Description |
---|---|
static ITreeNode<org.openjdk.jmc.common.item.IItem> |
buildEncapsulationTree(org.openjdk.jmc.common.item.IItemCollection items,
boolean allowInstants)
Builds a tree where events that wrap other events, time wise, are higher up in the hierarchy.
|
static ITreeNode<org.openjdk.jmc.common.item.IItem> |
buildEncapsulationTree(org.openjdk.jmc.common.item.IItemCollection items,
boolean allowInstants,
boolean ignoreThread)
Builds a tree where events that wrap other events, time wise, are higher up in the hierarchy.
|
static ITreeNode<org.openjdk.jmc.common.item.IItem> |
buildEncapsulationTree(org.openjdk.jmc.common.item.IItemCollection items,
boolean allowInstants,
boolean ignoreThread,
ItemTreeBuilder.IItemTreeBuilderCallback callback)
Builds a tree where events that wrap other events, time wise, are higher up in the hierarchy.
|
public static ITreeNode<org.openjdk.jmc.common.item.IItem> buildEncapsulationTree(org.openjdk.jmc.common.item.IItemCollection items, boolean allowInstants)
items
- the items to build a tree fromallowInstants
- true
to allow instant events in the resulting treepublic static ITreeNode<org.openjdk.jmc.common.item.IItem> buildEncapsulationTree(org.openjdk.jmc.common.item.IItemCollection items, boolean allowInstants, boolean ignoreThread)
items
- the items to build a tree fromallowInstants
- true
to allow instant events in the resulting treeignoreThread
- true
to make the algorithm not care about event thread, can be used for VM
level events. It's up to the caller to make sure this is safe to do.public static ITreeNode<org.openjdk.jmc.common.item.IItem> buildEncapsulationTree(org.openjdk.jmc.common.item.IItemCollection items, boolean allowInstants, boolean ignoreThread, ItemTreeBuilder.IItemTreeBuilderCallback callback)
items
- the items to build a tree fromallowInstants
- true
to allow instant events in the resulting treeignoreThread
- true
to make the algorithm not care about event thread, can be used for VM
level events. It's up to the caller to make sure this is safe to do.callback
- callback used to determine whether or not to continue building the encapsulation treeCopyright © 2020. All rights reserved.