Package org.opt4j.optimizer.ea
Class Pair<A>
java.lang.Object
org.opt4j.optimizer.ea.Pair<A>
- Type Parameters:
A
- the type of the paired objects
The
Pair
groups two objects of the same type in a given order.-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
first
-
second
-
-
Constructor Details
-
Pair
Constructs aPair
with a first and a second element.- Parameters:
first
- the first objectsecond
- the second object
-
-
Method Details
-
getFirst
Returns the first element.- Returns:
- the first element
-
getSecond
Returns the second element.- Returns:
- the second element
-