Class MutablePair<T>


  • public class MutablePair<T>
    extends Object
    Non final version of Pair.
    • Constructor Detail

      • MutablePair

        public MutablePair()
    • Method Detail

      • set

        public void set​(T first,
                        T second)
      • equals

        public boolean equals​(Object o)
        Checks the two objects for equality by delegating to their respective Object.equals(Object) methods.
        Overrides:
        equals in class Object
        Parameters:
        o - the Pair to which this one is to be checked for equality
        Returns:
        true if the underlying objects of the Pair are both considered equal
      • hashCode

        public int hashCode()
        Compute a hash code using the hash codes of the underlying objects
        Overrides:
        hashCode in class Object
        Returns:
        a hashcode of the Pair