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)
           
 KEY_TYPE getKey()
           
abstract  void updateWith(NodeData<KEY_TYPE> newData)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeData

public NodeData(KEY_TYPE key)
Method Detail

getKey

public final KEY_TYPE getKey()

equals

public final boolean equals(NodeData<KEY_TYPE> otherData)

updateWith

public abstract void updateWith(NodeData<KEY_TYPE> newData)


Copyright © 2010-2012 Squashtest TM, Squashtest.org. All Rights Reserved.