다음을 통해 공유


KeyValuePair<K,V> Class

  • java.lang.Object
    • microsoft.servicefabric.data.utilities.KeyValuePair<K,V>

Type Parameters

K

Specifies the type of the key

V

Specifies the type of the value

public class KeyValuePair<K extends String,V>

A pair maintaining a key and a value.

Constructor Summary

Constructor Description
KeyValuePair(K key, V value)

Creates a pair representing a mapping from the specified key to the specified value.

Method Summary

Modifier and Type Method and Description
K getKey()

Gets the key.

V getValue()

Gets the value

Constructor Details

KeyValuePair

public KeyValuePair(K key, V value)

Creates a pair representing a mapping from the specified key to the specified value.

Parameters:

key - The key
value - The value

Method Details

getKey

public K getKey()

Gets the key.

Returns:

The key

getValue

public V getValue()

Gets the value

Returns:

The value.

Applies to