Skip to content

Instantly share code, notes, and snippets.

@pandey-adarsh147
Created January 12, 2015 20:37
Show Gist options
  • Save pandey-adarsh147/0a50230f9fae11ff0ee8 to your computer and use it in GitHub Desktop.
Save pandey-adarsh147/0a50230f9fae11ff0ee8 to your computer and use it in GitHub Desktop.
Cacheable Store class
package com.verctordirection.test;
import com.vectordirection.CacheableItem;
/**
* Created by adarshpandey on 1/13/15.
*/
public class Store implements CacheableItem<Integer> {
private Integer key;
private Integer value;
public Store(Integer key, Integer value) {
this.key = key;
this.value = value;
}
@Override
public Integer getKey() {
return key;
}
public void setKey(Integer key) {
this.key = key;
}
public Integer getValue() {
return value;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment