org.jboss.cache.marshall
Class NodeData<K,V>

java.lang.Object
  extended by org.jboss.cache.marshall.NodeData<K,V>
All Implemented Interfaces:
Externalizable, Serializable
Direct Known Subclasses:
NodeDataExceptionMarker, NodeDataMarker

public class NodeData<K,V>
extends Object
implements Externalizable

Serializable representation of the data of a node (FQN and attributes)

Version:
$Id: NodeData.java 7168 2008-11-19 17:37:20Z jason.greene@jboss.com $
Author:
Bela Ban
See Also:
Serialized Form

Constructor Summary
NodeData()
           
NodeData(Fqn fqn)
           
NodeData(Fqn fqn, Map<K,V> attrs, boolean mapSafe)
           
NodeData(String fqn, Map<K,V> attrs, boolean mapSafe)
           
 
Method Summary
 boolean equals(Object o)
           
 Map<K,V> getAttributes()
           
 Fqn getFqn()
           
 int hashCode()
           
 boolean isExceptionMarker()
           
 boolean isMarker()
           
 void readExternal(ObjectInput in)
           
 String toString()
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NodeData

public NodeData()

NodeData

public NodeData(Fqn fqn)

NodeData

public NodeData(Fqn fqn,
                Map<K,V> attrs,
                boolean mapSafe)

NodeData

public NodeData(String fqn,
                Map<K,V> attrs,
                boolean mapSafe)
Method Detail

getAttributes

public Map<K,V> getAttributes()

getFqn

public Fqn getFqn()

isMarker

public boolean isMarker()

isExceptionMarker

public boolean isExceptionMarker()

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2009 JBoss, a division of Red Hat. All Rights Reserved.