|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.cache.AbstractNode<K,V>
public abstract class AbstractNode<K,V>
Base class for UnversionedNode
.
Nested Class Summary | |
---|---|
static class |
AbstractNode.NodeFlags
These flags were originally stored as booleans on the UnversionedNode class. |
Field Summary | |
---|---|
protected Map<Object,Node<K,V>> |
children
|
protected short |
flags
Flags placed on the node. |
protected Fqn<?> |
fqn
|
Constructor Summary | |
---|---|
AbstractNode()
|
Method Summary | |
---|---|
boolean |
equals(Object another)
|
int |
hashCode()
|
boolean |
isDeleted()
|
protected boolean |
isFlagSet(AbstractNode.NodeFlags flag)
Tests whether a flag is set. |
boolean |
isResident()
|
void |
markAsDeleted(boolean marker)
|
void |
markAsDeleted(boolean marker,
boolean recursive)
|
protected void |
setFlag(AbstractNode.NodeFlags flag)
Unility method that sets the value of the given flag to true. |
protected void |
setFlag(AbstractNode.NodeFlags flag,
boolean value)
Utility method for setting or unsetting a flag. |
void |
setResident(boolean resident)
|
protected void |
unsetFlag(AbstractNode.NodeFlags flag)
Utility method that sets the value of the flag to false. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Map<Object,Node<K,V>> children
protected Fqn<?> fqn
protected short flags
Constructor Detail |
---|
public AbstractNode()
Method Detail |
---|
protected final boolean isFlagSet(AbstractNode.NodeFlags flag)
flag
- flag to test
protected final void setFlag(AbstractNode.NodeFlags flag, boolean value)
flags
encoded short. If status is false, the NodeFlag is removed from the encoded short.
flag
- flag to set or unsetvalue
- true to set the flag, false to unset the flag.protected final void setFlag(AbstractNode.NodeFlags flag)
flag
- flag to setprotected final void unsetFlag(AbstractNode.NodeFlags flag)
flag
- flag to unsetpublic boolean isDeleted()
public void markAsDeleted(boolean marker)
public void markAsDeleted(boolean marker, boolean recursive)
public void setResident(boolean resident)
public boolean isResident()
public boolean equals(Object another)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |