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.Collection; 011import java.util.HashSet; 012 013/** 014 * Map each key to a set of values 015 * @param <Key> the class of the key 016 * @param <Value> the class of the elements held in the set 017 * @author Rusi Popov (popovr@mdatools.net) 018 */ 019public class MapToSet<Key, Value> extends MapToCollection<Key, Value> { 020 021 /** 022 * @see net.mdatools.modelant.core.util.map.MapToCollection#createValuesCollection() 023 */ 024 protected Collection<Value> createValuesCollection() { 025 return new HashSet<Value>(); 026 } 027}