Class MutablePair<T>

  • Type Parameters:
    T -

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

      Constructors 
      Constructor Description
      MutablePair()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)
      Checks the two objects for equality by delegating to their respective Object.equals(Object) methods.
      int hashCode()
      Compute a hash code using the hash codes of the underlying objects
      void set​(T first, T second)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • MutablePair

        public MutablePair()
    • Method Detail

      • set

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

        public boolean equals​(java.lang.Object o)
        Checks the two objects for equality by delegating to their respective Object.equals(Object) methods.
        Overrides:
        equals in class java.lang.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 java.lang.Object
        Returns:
        a hashcode of the Pair
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object