algorithms.tutorialhorizon.com
Pair Class – Java Implementation | Algorithms
Class Pair A convenience class to represent name-value pairs. pair stores a key-pair value. Two Pair objects are considered equal if key and value of one pair is matching with second key. This class also generates hash code using key and value. So hash code will also be same for two Pair objects if their keys and values are same