All Downloads are FREE. Search and download functionalities are using the official Maven repository.

donky.microsoft.aspnet.signalr.client.SimpleEntry Maven / Gradle / Ivy

There is a newer version: 2.7.0.3
Show newest version
/*
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