Package dsa.lab04.base
Class MapItem<Key,Value> 
java.lang.Object
dsa.lab04.base.MapItem<Key,Value> 
- Type Parameters:
- Key- the key type
- Value- the value type
An item in a map.
- See Also:
- 
Constructor SummaryConstructors
- 
Method Summary
- 
Constructor Details- 
MapItemConstruct a map item.- Parameters:
- key- the key
- value- the value
 
 
- 
- 
Method Details- 
keyGet the key (the unique/identifying part of the item).- Returns:
- the key
 
- 
valueGet the value (the rest of the item, or the corresponding value, depending on your view).- Returns:
- the value
 
- 
equals
- 
hashCodepublic int hashCode()
- 
toString
 
-