org.jboss.cache
Class AbstractNode<K,V>
java.lang.Object
org.jboss.cache.AbstractNode<K,V>
- Direct Known Subclasses:
- UnversionedNode, WorkspaceNodeImpl
public abstract class AbstractNode<K,V>
- extends Object
Base class for UnversionedNode
.
- Author:
- manik
Nested Class Summary |
static class |
AbstractNode.NodeFlags
These flags were originally stored as booleans on the UnversionedNode class. |
children
protected Map<Object,Node<K,V>> children
fqn
protected Fqn<?> fqn
flags
protected final EnumSet<AbstractNode.NodeFlags> flags
- Flags placed on the node. Replaces older 'boolean' flags.
AbstractNode
public AbstractNode()
isDeleted
public boolean isDeleted()
markAsDeleted
public void markAsDeleted(boolean marker)
markAsDeleted
public void markAsDeleted(boolean marker,
boolean recursive)
setResident
public void setResident(boolean resident)
isResident
public boolean isResident()
equals
public boolean equals(Object another)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
setFlag
protected void setFlag(AbstractNode.NodeFlags flag,
boolean status)
- Utility method for setting or unsetting a flag. If status is true, the NodeFlag specified is added to the
flags
EnumSet. If status is false, the NodeFlag is removed from the EnumSet.
- Parameters:
flag
- flag to set or unsetstatus
- true to set the flag, false to unset the flag.
Copyright © 2008 JBoss, a division of Red Hat. All Rights Reserved.