Primitive types should be compared with
.equals
due to java 8 type annotations also applicable to primitive types