Class Triplet<U,​K,​V>

java.lang.Object
battleship.utils.Triplet<U,​K,​V>
Type Parameters:
U - left
K - middle
V - right

public class Triplet<U,​K,​V>
extends java.lang.Object
tuple containing 3 generic type elements
  • Field Summary

    Fields
    Modifier and Type Field Description
    private U left  
    private K middle  
    private V right  
  • Constructor Summary

    Constructors
    Constructor Description
    Triplet​(Pair<U,​K> pair, V right)  
    Triplet​(U left, K middle, V right)  
  • Method Summary

    Modifier and Type Method Description
    boolean equals​(java.lang.Object obj)  
    U getLeft()  
    K getMiddle()  
    V getRight()  
    int hashCode()  
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

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

    • left

      private final U left
    • middle

      private final K middle
  • Constructor Details

    • Triplet

      public Triplet​(U left, K middle, V right)
    • Triplet

      public Triplet​(Pair<U,​K> pair, V right)
  • Method Details

    • getLeft

      public U getLeft()
    • getMiddle

      public K getMiddle()
    • getRight

      public V getRight()
    • 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