001/* 002 * Copyright c 2018 Rusi Popov, MDA Tools.net All rights reserved. 003 * 004 * This program and the accompanying materials are made available under the terms of the 005 * Eclipse Public License v2.0 which accompanies this distribution, and is available at 006 * http://www.eclipse.org/legal/epl-v20.html 007 */ 008package net.mdatools.modelant.core.util.map; 009 010import java.util.ArrayList; 011import java.util.Collection; 012 013/** 014 * Map each key to a list of values 015 * @param <K> the class of the key 016 * @param <V> the class of the elements held in the list 017 * @author Rusi Popov (popovr@mdatools.net) 018 */ 019public class MapToList<K, V> extends MapToCollection<K, V> { 020 021 /** 022 * @see net.mdatools.modelant.core.util.map.MapToCollection#createValuesCollection() 023 */ 024 protected Collection<V> createValuesCollection() { 025 return new ArrayList<V>(); 026 } 027}