T
TT \(Tom Tempelaere\)
Hi,
My key is composed of two dates. What should I do to calculate the hash
value?
Can I just add the hashCode's of the two dates?
class DatePair
{
public Date d1;
public Date d2;
public int hashCode()
{
return d1.hashCode() + d2.hashCode();
}
}
Thanks,
Tom Tempelaere
My key is composed of two dates. What should I do to calculate the hash
value?
Can I just add the hashCode's of the two dates?
class DatePair
{
public Date d1;
public Date d2;
public int hashCode()
{
return d1.hashCode() + d2.hashCode();
}
}
Thanks,
Tom Tempelaere