public static class InventoryStructure.Offline<Root extends Entity.Blueprint> extends Object implements InventoryStructure<Root>, Serializable
This is not directly instantiable but rather can be either copied from another structure (possibly lazily
loaded) or built using a InventoryStructure.Builder.
InventoryStructure.AbstractBuilder<This extends InventoryStructure.AbstractBuilder<?>>, InventoryStructure.Builder<Root extends Entity.Blueprint>, InventoryStructure.ChildBuilder<ParentBuilder extends InventoryStructure.AbstractBuilder<?>>, InventoryStructure.EntityType, InventoryStructure.FullNode, InventoryStructure.Offline<Root extends Entity.Blueprint>| Modifier and Type | Method and Description |
|---|---|
InventoryStructure.Builder<Root> |
asBuilder()
You can use this method if you have an existing inventory structure and want to make modifications to it.
|
static <R extends Entity.Blueprint> |
copy(InventoryStructure<R> other) |
static <R extends Entity.Blueprint> |
copy(InventoryStructure<R> other,
boolean withAttachments) |
boolean |
equals(Object o) |
Entity.Blueprint |
get(RelativePath path)
Gets a blueprint on the given path.
|
<E extends Entity,B extends Entity.Blueprint> |
getChildren(RelativePath parent,
Class<E> childType)
Returns the direct children of given type under the supplied path to the parent entity, which is relative to some
root entity for which this structure was instantiated.
|
InventoryStructure.FullNode |
getNode(RelativePath path)
By providing an empty relative path, one can retrieve the attachment of the root entity.
|
Root |
getRoot() |
int |
hashCode() |
static <R extends Entity.Blueprint> |
of(R root)
Shortcut method, exactly identical to calling
of(Entity.Blueprint). |
static <R extends Entity.Blueprint> |
of(R root,
Object attachment)
Shortcut method, exactly identical to calling
of(Entity.Blueprint, Object). |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetAllChildNodes, getAllChildren, getAllChildrenWithAttachments, getChildNodespublic static <R extends Entity.Blueprint> InventoryStructure.Offline<R> copy(InventoryStructure<R> other)
public static <R extends Entity.Blueprint> InventoryStructure.Offline<R> copy(InventoryStructure<R> other, boolean withAttachments)
public InventoryStructure.Builder<Root> asBuilder()
public static <R extends Entity.Blueprint> InventoryStructure.Builder<R> of(R root)
InventoryStructureof(Entity.Blueprint).of in interface InventoryStructure<Root extends Entity.Blueprint>R - the type of the blueprintroot - the root blueprintpublic static <R extends Entity.Blueprint> InventoryStructure.Builder<R> of(R root, Object attachment)
InventoryStructureof(Entity.Blueprint, Object).of in interface InventoryStructure<Root extends Entity.Blueprint>R - the type of the blueprintroot - the root blueprintattachment - the attachment of the blueprintpublic Root getRoot()
getRoot in interface InventoryStructure<Root extends Entity.Blueprint>public <E extends Entity,B extends Entity.Blueprint> Stream<B> getChildren(RelativePath parent, Class<E> childType)
InventoryStructureWARNING: the returned stream MUST BE closed after processing.
getChildren in interface InventoryStructure<Root extends Entity.Blueprint>E - the type of the child entitiesB - the type of the child entity blueprintparent - the path to the parent entity, relative to the root entitychildType - the type of the child entities to retrievepublic Entity.Blueprint get(RelativePath path)
InventoryStructureget in interface InventoryStructure<Root extends Entity.Blueprint>path - the path under the root of the structurepublic InventoryStructure.FullNode getNode(RelativePath path)
InventoryStructuregetNode in interface InventoryStructure<Root extends Entity.Blueprint>path - the path to the entity in the inventory structureCopyright © 2014–2017 Red Hat, Inc.. All rights reserved.