import java.util.HashMap;
/**
* Returns true if there is no mapping
* @author Lukas
* @param <K>
* @param <Boolean>
*/
public class SaveChecker<K, Boolean> extends HashMap<K, Boolean> {
@Override
public Boolean get(Object key) {
Boolean result = super.get(key);
if (result == null) {
result = Boolean.TRUE;
}
return result;
}
}
chape niekto preco mi pise ze nepozna Boolean?