donky.microsoft.aspnet.signalr.client.SimpleEntry Maven / Gradle / Ivy
/*
Copyright (c) Microsoft Open Technologies, Inc.
All Rights Reserved
See License.txt in the project root for license information.
*/
package donky.microsoft.aspnet.signalr.client;
import java.util.Map.Entry;
/**
* Simple Entry<K,V> implementation
*
* @param
* Key
* @param
* Value
*/
public class SimpleEntry implements Entry {
K mKey;
V mValue;
/**
* Initializes the SimpleEntry
*
* @param key
* Entry key
* @param value
* Entry value
*/
public SimpleEntry(K key, V value) {
mKey = key;
mValue = value;
}
@Override
public K getKey() {
return mKey;
}
@Override
public V getValue() {
return mValue;
}
@Override
public V setValue(V value) {
mValue = value;
return mValue;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy