net.sf.japaki.beans
Interface KeyValueBean<K,V>

All Superinterfaces:
Map.Entry<K,V>
All Known Implementing Classes:
KeyValuePair, MapItemBean

public interface KeyValueBean<K,V>
extends Map.Entry<K,V>

A bean with two properties: key and value.


Method Summary
 K setKey(K key)
          Replaces the key corresponding to this bean with the specified key.
 
Methods inherited from interface java.util.Map.Entry
equals, getKey, getValue, hashCode, setValue
 

Method Detail

setKey

K setKey(K key)
Replaces the key corresponding to this bean with the specified key.

Parameters:
key - new key to be stored in this bean
Throws:
ClassCastException - if the class of the key is not valid for this bean
NullPointerException - if this bean does not allow null keys
IllegalArgumentException - if the key is not valid for this bean