Get rid of warnings

added <Type> in the parameters of the equals method