public class CacheNode extends Object

A cache node only stores complete children. Additionally it holds a flag whether the node can be considered fully initialized in the sense that we know at one point in time this represented a valid state of the world, e.g. initialized with data from the server, or a complete overwrite by the client. The filtered flag also tracks whether a node potentially had children removed due to a filter.

Public Constructor Summary

CacheNode(IndexedNode node, boolean fullyInitialized, boolean filtered)

Public Method Summary

IndexedNode
Node
boolean
boolean
boolean
isFiltered()
Returns whether this node is potentially missing children due to a filter applied to the node
boolean
isFullyInitialized()
Returns whether this node was fully initialized with either server data or a complete overwrite by the client

Inherited Method Summary

Public Constructors

public CacheNode (IndexedNode node, boolean fullyInitialized, boolean filtered)

Parameters
node
fullyInitialized
filtered

Public Methods

public IndexedNode getIndexedNode ()

public Node getNode ()

public boolean isCompleteForChild (ChildKey key)

Parameters
key

public boolean isCompleteForPath (Path path)

Parameters
path

public boolean isFiltered ()

Returns whether this node is potentially missing children due to a filter applied to the node

public boolean isFullyInitialized ()

Returns whether this node was fully initialized with either server data or a complete overwrite by the client