I would add parenthesis:
((name1 == name2) && (type1 == type2) && (id1 == id2))

Might my only my personal opinion, but I find it easier to read ...