@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 |
LazyCachedNode.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 LazyCachedNode.NonRootParentReferenceToSelf(CachedNode parent, ChildReference childReferenceInParent)
public boolean isRoot()
LazyCachedNode.ParentReferenceToSelfchild reference pointing to the root node.isRoot in interface LazyCachedNode.ParentReferenceToSelfpublic ChildReference childReferenceInParent()
LazyCachedNode.ParentReferenceToSelfChildReference instance.childReferenceInParent in interface LazyCachedNode.ParentReferenceToSelfpublic boolean isComplete()
LazyCachedNode.ParentReferenceToSelfisComplete in interface LazyCachedNode.ParentReferenceToSelfpublic boolean isValid(CachedNode recentParent)
LazyCachedNode.ParentReferenceToSelfCachedNode instance that represents the
most-recently acquired parent node representation.isValid in interface LazyCachedNode.ParentReferenceToSelfrecentParent - the most recent cached node for the parentCopyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.