Friday, September 27, 2013

Surrougate Map Class........

package org.nanotek.lucene.query;

import java.util.Map;
import java.util.Set;

import org.nanotek.util.Base;

public class SurrougateMap<T1, T2> {

public Map<String, Base<?>> getQueryParameters() {
return queryParameters;
}

public void setQueryParameters(Map<String, Base<?>> queryParameters) {
this.queryParameters = queryParameters;
}

public void setId(String id) {
this.id = id;
}

public boolean isEmpty() {
return queryParameters.isEmpty();
}

public boolean containsKey(Object key) {
return queryParameters.containsKey(key);
}

public boolean containsValue(Object value) {
return queryParameters.containsValue(value);
}

public Base<?> get(Object key) {
return queryParameters.get(key);
}

public Base<?> put(String key, Base<?> value) {
return queryParameters.put(key, value);
}

public void putAll(Map<? extends String, ? extends Base<?>> m) {
queryParameters.putAll(m);
}

public void clear() {
queryParameters.clear();
}

public Set<String> keySet() {
return queryParameters.keySet();
}
}


A alegria chinesa, de que eu morro mas levo covarde junto.