Android Open Source - Stack-Chat K V Pair






From Project

Back to project page Stack-Chat.

License

The source code is released under:

MIT License

If you think the Android project Stack-Chat listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.noahhuppert.stackchat.models;
/*w w  w  .ja  va2s  .co  m*/
/**
 * Created by Noah Huppert on 11/9/2014.
 */

/**
 * A Class used to store key value data
 */
public class KVPair {
    /**
     * The key of the value
     */
    private String key;

    /**
     * The value of the pair
     */
    private Object value;

    /* Constructors */

    /**
     * Creates a key value pair
     * @param key {@link KVPair#key}
     * @param value {@link KVPair@value}
     */
    public KVPair(String key, Object value){
        this.key = key;
        this.value = value;
    }

    /* Getters */

    /**
     * Gets the key
     * @return {@link KVPair#key}
     */
    public String getKey(){
        return key;
    }

    /**
     * Gets the value
     * @return {@link KVPair#value}
     */
    public Object getValue(){
        return value;
    }

    /* Setters */

    /**
     * Sets the {@link KVPair#key}
     * @param key The value to the set the {@link KVPair#key} value
     */
    public void setKey(String key){
        this.key = key;
    }

    /**
     * Sets the {@link KVPair#value}
     * @param value The value to set the {@link KVPair#value} value
     */
    public void setValue(Object value){
        this.value = value;
    }
}




Java Source Code List

com.noahhuppert.stackchat.ApplicationTest.java
com.noahhuppert.stackchat.MainActivity.java
com.noahhuppert.stackchat.MessagesRecyclerViewAdapter.java
com.noahhuppert.stackchat.controllers.HeaderBuilder.java
com.noahhuppert.stackchat.controllers.JellyKitNotificationController.java
com.noahhuppert.stackchat.controllers.NotificationController.java
com.noahhuppert.stackchat.controllers.PopNotificationController.java
com.noahhuppert.stackchat.fragments.RoomFragment.java
com.noahhuppert.stackchat.models.KVPair.java
com.noahhuppert.stackchat.models.Message.java
com.noahhuppert.stackchat.models.Room.java
com.noahhuppert.stackchat.models.User.java
com.noahhuppert.stackchat.modules.BaseStackChatModule.java
com.noahhuppert.stackchat.modules.StackChatModule.java
com.noahhuppert.stackchat.modules.StackChatModule.java
com.noahhuppert.stackchat.tasks.GetMessagesTask.java
com.noahhuppert.stackchat.tasks.UpdateRoomMessagesTask.java