-
- Type Parameters:
K - the type of the first element.
V - the type of the second element.
- All Implemented Interfaces:
- Serializable
public final class Pair<K,V>
extends Object
implements Serializable
A convenience class to represent value pairs.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors
| Constructor and Description |
Pair(K first,
V second)
Creates a new pair
|
-
-
Method Detail
-
getFirst
public K getFirst()
- Returns:
- the second of the first element of this
Pair.
-
getSecond
public V getSecond()
- Returns:
- the second of the second element of this
Pair.
Copyright © 2017 MuleSoft, Inc.. All rights reserved.