public class Pair<A,B> extends Object
Pair class.
Constructor and Description |
---|
Pair()
Constructor for Pair.
|
Pair(A first,
B second)
Constructor for Pair.
|
Modifier and Type | Method and Description |
---|---|
A |
getFirst()
Getter for the field
first . |
B |
getSecond()
Getter for the field
second . |
Pair<A,B> |
setBoth(A first,
B second)
setBoth.
|
void |
setFirst(A first)
Setter for the field
first . |
void |
setSecond(B second)
Setter for the field
second . |
public A getFirst()
Getter for the field first
.
public void setFirst(A first)
Setter for the field first
.
first
- a A objectpublic B getSecond()
Getter for the field second
.
public void setSecond(B second)
Setter for the field second
.
second
- a B objectCopyright © 2016–2024. All rights reserved.