ch.epfl.labos.iu.orm.Triple Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of api Show documentation
Show all versions of api Show documentation
Jinq public API for extending Java 8 streams with database functionality
package ch.epfl.labos.iu.orm;
public class Triple
{
final T one;
final U two;
final V three;
public T getOne()
{
return one;
}
public U getTwo()
{
return two;
}
public V getThree()
{
return three;
}
public Triple(T one, U two, V three)
{
this.one = one;
this.two = two;
this.three = three;
}
public boolean equals(Object obj)
{
if ( this == obj) return true;
if (! (obj instanceof Triple)) return false;
return this.one.equals(((Triple)obj).one)
&& this.two.equals(((Triple)obj).two)
&& this.three.equals(((Triple)obj).three);
}
public int hashCode()
{
return one.hashCode() + two.hashCode() + three.hashCode();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy