Advertisement
Guest User

Untitled

a guest
May 23rd, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.64 KB | None | 0 0
  1. package HashMap;
  2.  
  3. /**
  4.  * Created by unrealWombat on 22/05/2017.
  5.  */
  6. public class KeyValuePair {
  7.  
  8.     private String key;
  9.     private int value;
  10.     private KeyValuePair next = null;
  11.  
  12.     public KeyValuePair(String key, int value) {
  13.         this.key = key;
  14.         this.value =value;
  15.     }
  16.  
  17.     public String getKey() {
  18.         return key;
  19.     }
  20.  
  21.     public int getValue() {
  22.         return value;
  23.     }
  24.  
  25.     public void setValue(int value) {
  26.         this.value = value;
  27.     }
  28.  
  29.     public void setNext(KeyValuePair next) {
  30.         this.next = next;
  31.     }
  32.  
  33.     public KeyValuePair getNext() {
  34.         return next;
  35.     }
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement