Package esmska.data

Class Tuple3<A,​B,​C>

  • All Implemented Interfaces:
    java.io.Serializable

    public class Tuple3<A,​B,​C>
    extends java.lang.Object
    implements java.io.Serializable
    Container for tuple of three objects of different classes.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected A v1  
      protected B v2  
      protected C v3  
    • Constructor Summary

      Constructors 
      Constructor Description
      Tuple3​(A v1, B v2, C v3)
      Create new tuple of three objects.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      A get1()
      Get first object
      B get2()
      Get second object
      C get3()
      Get third object
      int hashCode()  
      void set1​(A v1)
      Set first object
      void set2​(B v2)
      Set second object
      void set3​(C v3)
      Set third object
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • v1

        protected A v1
      • v2

        protected B v2
      • v3

        protected C v3
    • Constructor Detail

      • Tuple3

        public Tuple3​(A v1,
                      B v2,
                      C v3)
        Create new tuple of three objects.
        Parameters:
        v1 - first object
        v2 - second object
        v3 - third object
    • Method Detail

      • get1

        public A get1()
        Get first object
      • set1

        public void set1​(A v1)
        Set first object
      • get2

        public B get2()
        Get second object
      • set2

        public void set2​(B v2)
        Set second object
      • get3

        public C get3()
        Get third object
      • set3

        public void set3​(C v3)
        Set third object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

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