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