com.talk2object.common.IndexedList Maven / Gradle / Ivy
The newest version!
package com.talk2object.common;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class IndexedList {
private List list = new ArrayList();
private Map map = new HashMap();
public List getList() {
return list;
}
public void setList(List list) {
this.list = list;
}
public Map getMap() {
return map;
}
public void setMap(Map map) {
this.map = map;
}
public void put(K key, V value) {
list.add(value);
map.put(key, value);
}
public void clear(){
list.clear();
map.clear();
}
public V get(K key) {
return map.get(key);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy