T
- the type of the first valueU
- the type of the second valuepublic class Pair<T,U> extends Object
Constructor and Description |
---|
Pair(T value1,
U value2)
Creates a new object with the two given values.
|
Modifier and Type | Method and Description |
---|---|
T |
getValue1()
Gives the first value back.
|
U |
getValue2()
Gives the second value back.
|
Pair<U,T> |
reverse()
Creates a new instance of this class with the two values in reversed order.
|
Copyright © 2014–2020, Printing in 3D. All rights reserved.