Package org.tensorics.core.tree.domain
Class Contexts
- java.lang.Object
-
- org.tensorics.core.tree.domain.Contexts
-
public final class Contexts extends java.lang.Object
Provides utility methods for creating different kind of contexts.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RebuildingContext
emptyRebuildingContext()
returns an immutable empty context.static EditableResolvingContext
mergeContextsOrdered(java.lang.Iterable<ResolvingContext> contexts)
Merges the contexts of the iterable in the order they appear.static EditableResolvingContext
mergeContextsOrdered(ResolvingContext... contexts)
static RebuildingContext
newRebuildingContext()
creates a new rebuilding-context which allows the rebuilding of model nodesstatic EditableResolvingContext
newResolvingContext()
creates a new resolving-context which can be filled with resolved operations.
-
-
-
Method Detail
-
emptyRebuildingContext
public static RebuildingContext emptyRebuildingContext()
returns an immutable empty context.- Returns:
- an immutable version of an empty context.
-
newResolvingContext
public static EditableResolvingContext newResolvingContext()
creates a new resolving-context which can be filled with resolved operations.- Returns:
- a new instance of a resolving context.
-
mergeContextsOrdered
public static EditableResolvingContext mergeContextsOrdered(java.lang.Iterable<ResolvingContext> contexts)
Merges the contexts of the iterable in the order they appear. Being a context a map-like object the order of insertion matters.- Parameters:
contexts
- the given contexts to merge- Returns:
- the context with all the values of the given contexts
-
mergeContextsOrdered
public static EditableResolvingContext mergeContextsOrdered(ResolvingContext... contexts)
-
newRebuildingContext
public static RebuildingContext newRebuildingContext()
creates a new rebuilding-context which allows the rebuilding of model nodes- Returns:
- a new instance of a rebuilding context.
-
-