JTools

org.jtools.depend
Interface DependencyItem<T_Key>

Type Parameters:
T_Key - The ItemKey type.

public interface DependencyItem<T_Key>

Represents an item of an indirect dependency. It requires an unique key. Optionally one can associate an arbitrary user object.

Author:
Rainer Noack

Method Summary
 T_Key getKey()
          Gets the item key.
 Object getUserObject()
          Gets the associated user object.
 void setUserObject(Object userObject)
          Associates an arbitrary user object with this item.
 

Method Detail

getKey

T_Key getKey()
Gets the item key.

Returns:
The unique key of this item.

getUserObject

Object getUserObject()
Gets the associated user object.

Returns:
The associated user object or null if there is none.

setUserObject

void setUserObject(Object userObject)
Associates an arbitrary user object with this item.

Parameters:
userObject - Object to associate with this item.

JTools

© 2000-2006, JTools.org.