org.squashtest.csp.tm.domain.library.structures
Class NodeData<KEY_TYPE>

java.lang.Object
  extended by org.squashtest.csp.tm.domain.library.structures.NodeData<KEY_TYPE>
Type Parameters:
KEY_TYPE - the type of the key used for comparison.
Direct Known Subclasses:
DeletableNodeData

public abstract class NodeData<KEY_TYPE>
extends Object

classes extending that one should preferably be comparable only on a subset of their attributes. More formally, a.equals(b) regardless of the result of (a.hashCode() == b.hashCode())

Author:
bsiri

Constructor Summary
NodeData(KEY_TYPE key)
           
 
Method Summary
 boolean equals(NodeData<KEY_TYPE> otherData)
           
 boolean equals(Object obj)
           
 KEY_TYPE getKey()
           
 int hashCode()
           
abstract  void updateWith(NodeData<KEY_TYPE> newData)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeData

public NodeData(KEY_TYPE key)
Method Detail

getKey

public final KEY_TYPE getKey()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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

equals

public final boolean equals(NodeData<KEY_TYPE> otherData)

updateWith

public abstract void updateWith(NodeData<KEY_TYPE> newData)


Copyright © 2010-2012 Henix, henix.fr. All Rights Reserved.