News

There are four reasons that I believe using == to compare Java enums is almost always preferable to using the “equals” method: ... with the == operator, order of comparison does not matter.