blob: f02e27bef3108b8aad9642a534fbee7de0159efa [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2012 Tasktop Technologies and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Tasktop Technologies - initial API and implementation
*******************************************************************************/
package org.eclipse.mylyn.internal.gerrit.core;
import java.util.HashMap;
import java.util.Map;
import org.eclipse.mylyn.reviews.core.model.IReviewItem;
/**
* @author Steffen Pingel
*/
public class ReviewItemCache {
private final Map<String, IReviewItem> reviewItemById;
public ReviewItemCache() {
reviewItemById = new HashMap<String, IReviewItem>();
}
public IReviewItem getItem(String id) {
return reviewItemById.get(id);
}
public void put(IReviewItem item) {
reviewItemById.put(item.getId(), item);
}
}