@Immutable protected static final class LazyCachedNode.NonRootParentReferenceToSelf extends Object implements LazyCachedNode.ParentReferenceToSelf
LazyCachedNode.ParentReferenceToSelf
implementation that caches the ChildReference
from the parent plus the actual
parent (via a weak reference to the CachedNode
.
This class is immutable, because it is simply discarded when it is out of date; see
LazyCachedNode.parentReferenceToSelf(WorkspaceCache)
).
Modifier | Constructor and Description |
---|---|
protected |
NonRootParentReferenceToSelf(CachedNode parent,
ChildReference childReferenceInParent) |
Modifier and Type | Method and Description |
---|---|
ChildReference |
childReferenceInParent()
Get the cached
ChildReference instance. |
boolean |
isComplete()
Determine if this object is still complete.
|
boolean |
isRoot()
Get whether this represents the
child reference pointing to the root node. |
boolean |
isValid(CachedNode recentParent)
Determine if this instance is still valid, given the supplied
CachedNode instance that represents the
most-recently acquired parent node representation. |
String |
toString() |
protected NonRootParentReferenceToSelf(CachedNode parent, ChildReference childReferenceInParent)
public boolean isRoot()
LazyCachedNode.ParentReferenceToSelf
child reference
pointing to the root node.isRoot
in interface LazyCachedNode.ParentReferenceToSelf
public ChildReference childReferenceInParent()
LazyCachedNode.ParentReferenceToSelf
ChildReference
instance.childReferenceInParent
in interface LazyCachedNode.ParentReferenceToSelf
public boolean isComplete()
LazyCachedNode.ParentReferenceToSelf
isComplete
in interface LazyCachedNode.ParentReferenceToSelf
public boolean isValid(CachedNode recentParent)
LazyCachedNode.ParentReferenceToSelf
CachedNode
instance that represents the
most-recently acquired parent node representation.isValid
in interface LazyCachedNode.ParentReferenceToSelf
recentParent
- the most recent cached node for the parentCopyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.