2
* @author : Paul Taylor
5
* Version @version:$Id: HashMapInterface.java,v 1.8 2008/07/21 10:45:41 paultaylor Exp $
7
* MusicTag Copyright (C)2003,2004
9
* This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser
10
* General Public License as published by the Free Software Foundation; either version 2.1 of the License,
11
* or (at your option) any later version.
13
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
14
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15
* See the GNU Lesser General Public License for more details.
17
* You should have received a copy of the GNU Lesser General Public License along with this library; if not,
18
* you can get a copy from http://www.opensource.org/licenses/lgpl-license.php or write to the Free Software
19
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22
* A simple Interface required by classes which use a HashMap to Store ValuePairs
25
package org.jaudiotagger.tag.datatype;
27
import java.util.Iterator;
31
* Represents an interface allowing maping from key to value and value to key
33
public interface HashMapInterface<K, V>
36
* @return a mapping between the key within the frame and the value
38
public Map<K, V> getKeyToValue();
41
* @return a mapping between the value to the key within the frame
43
public Map<V, K> getValueToKey();
46
* @return an interator of the values within the map
48
public Iterator<V> iterator();