public class Pair<T1,T2>
extends java.lang.Object
Constructor and Description |
---|
Pair() |
Pair(Pair<T1,T2> source) |
Pair(T1 element1,
T2 element2) |
Modifier and Type | Method and Description |
---|---|
Pair<T1,T2> |
copy() |
static <T1,T2> Pair<T1,T2> |
create() |
static <T1,T2> Pair<T1,T2> |
create(T1 element1,
T2 element2) |
boolean |
equals(java.lang.Object obj) |
T1 |
getElement1() |
T2 |
getElement2() |
int |
hashCode() |
void |
setElement1(T1 element1) |
void |
setElement2(T2 element2) |
java.lang.String |
toString() |
public final T1 getElement1()
public void setElement1(T1 element1)
public final T2 getElement2()
public void setElement2(T2 element2)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public static <T1,T2> Pair<T1,T2> create()
public static <T1,T2> Pair<T1,T2> create(T1 element1, T2 element2)
Copyright (c) 2004-2019 Eike Stepper (Loehne, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html