Package libai.common

Class Triplet<V extends java.lang.Comparable,K extends java.lang.Comparable,Z extends java.lang.Comparable>


  • public final class Triplet<V extends java.lang.Comparable,K extends java.lang.Comparable,Z extends java.lang.Comparable>
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      V first
      First element of the tuple.
      K second
      Second element of the tuple.
      Z third
      Third element of the tuple.
    • Constructor Summary

      Constructors 
      Constructor Description
      Triplet​(V x, K y, Z z)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • first

        public V extends java.lang.Comparable first
        First element of the tuple.
      • second

        public K extends java.lang.Comparable second
        Second element of the tuple.
      • third

        public Z extends java.lang.Comparable third
        Third element of the tuple.
    • Constructor Detail

      • Triplet

        public Triplet​(V x,
                       K y,
                       Z z)
        Constructor.
        Parameters:
        x - the first element for the tuple.
        y - the second element for the tuple.
        z - the third element for the tuple.
    • Method Detail

      • hashCode

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

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • toString

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