2016/05/28 - Apache Tuscany has been retired.

For more information, please explore the Attic.



org.apache.tuscany.sca.data.collection
Class Entry<K,D>

java.lang.Object
  extended by org.apache.tuscany.sca.data.collection.Entry<K,D>
Direct Known Subclasses:
Entry

public class Entry<K,D>
extends java.lang.Object

Represents a key/data pair in a data collection.


Constructor Summary
Entry()
          Constructs a new entry.
Entry(K key, D data)
          Constructs a new entry.
 
Method Summary
 D getData()
          Returns the entry data.
 Item getDummy()
           
 K getKey()
          Returns the entry key.
 void setData(D data)
          Sets the entry data
 void setDummy(Item item)
           
 void setKey(K key)
          Sets the entry key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Entry

public Entry()
Constructs a new entry.


Entry

public Entry(K key,
             D data)
Constructs a new entry.

Parameters:
key - the entry key
data - the entry data
Method Detail

getKey

public K getKey()
Returns the entry key.

Returns:
the key

setKey

public void setKey(K key)
Sets the entry key.

Parameters:
key - the key

getData

public D getData()
Returns the entry data.

Returns:
the entry data

setData

public void setData(D data)
Sets the entry data

Parameters:
data - the entry data

setDummy

public void setDummy(Item item)

getDummy

public Item getDummy()