mojo: Add equals and hashCode to java bindings.

R=ppi@chromium.org

Review URL: https://codereview.chromium.org/681183003