K
- Key type.V
- Value type.public class Pair<K,V> extends Object
Constructor and Description |
---|
Pair(K k,
V v)
Create an entry representing a mapping from the specified key to the
specified value.
|
Pair(Pair<? extends K,? extends V> entry)
Create an entry representing the same mapping as the specified entry.
|
public Pair(K k, V v)
k
- Key.v
- Value.Copyright © 2003-2012 Apache Software Foundation. All Rights Reserved.