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

com.ircclouds.irc.api.utils.Tuple Maven / Gradle / Ivy

There is a newer version: 1.0-0014
Show newest version
package com.ircclouds.irc.api.utils;

public class Tuple
{
	private K k;
	private V v;
	
	public Tuple(K aK, V aV)
	{
		k = aK;
		v = aV;
	}
	
	public boolean equals(Object aTuple)
	{
		if (aTuple instanceof Tuple)
		{
			Tuple _t = (Tuple) aTuple;
			return k.equals(_t.k) && v.equals(_t.v);
		}
		
		return false;
	}
	
	public int hashCode()
	{
		return k.hashCode() + v.hashCode();
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy