APIdia Launch Partner
Top Description Fields Constructors Methods
jdk.internal.net.http.common

public final Class Pair<T, U>

extends Object
Class Inheritance

A simple paired value class

Field Summary

Modifier and TypeField and Description
public final T
public final U

Constructor Summary

AccessConstructor and Description
public
Pair(T first, U second)

Method Summary

Modifier and TypeMethod and Description
public static <T, U> Pair<T, U>
pair(T first, U second)

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

firstback to summary
public final T first
secondback to summary
public final U second

Constructor Detail

Pairback to summary
public Pair(T first, U second)

Method Detail

pairback to summary
public static <T, U> Pair<T, U> pair(T first, U second)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override