All Downloads are FREE. Search and download functionalities are using the official Maven repository.

fr.lteconsulting.hexa.client.tools.DoubleMap Maven / Gradle / Ivy

The newest version!
package fr.lteconsulting.hexa.client.tools;

import java.util.HashMap;
import java.util.Map;

public class DoubleMap
{
	private Map uv = new HashMap<>();
	private Map vu = new HashMap<>();

	public V get( U key )
	{
		return uv.get( key );
	}

	public U getReverse( V value )
	{
		return vu.get( value );
	}

	public void put( U key, V value )
	{
		uv.put( key, value );
		vu.put( value, key );
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy