Module qtjambi
Package io.qt.core

Class QPair<T,​S>

java.lang.Object
io.qt.core.QPair<T,​S>
All Implemented Interfaces:
Cloneable

public class QPair<T,​S>
extends Object
implements Cloneable
QPair keeps two generic values. They are public with the names first and second.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    T first
    First value of the pair.
    S second
    Second value of the pair.
  • Constructor Summary

    Constructors 
    Constructor Description
    QPair​(T t, S s)
    Constructs a pair.
  • Method Summary

    Modifier and Type Method Description
    QPair<T,​S> clone()
    Returns a copy of this object.
    boolean equals​(Object o)
    Returns true if this pair is the same as the other pair.
    int hashCode()  
    String toString()
    Returns a string representation of this pair.

    Methods inherited from class java.lang.Object

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

    • first

      public T first
      First value of the pair.
    • second

      public S second
      Second value of the pair.
  • Constructor Details

    • QPair

      public QPair​(T t, S s)
      Constructs a pair.
      Parameters:
      t - The first parameter.
      s - The second parameter.
  • Method Details