@Test public void testEquals() { assertEquals(new LoginOptions(), new LoginOptions()); final LoginOptions a = new LoginOptions(); a.keychain = false; final LoginOptions b = new LoginOptions(); b.keychain = true; assertNotEquals(a, b); }
@Override public boolean equals(final Object o) { if(this == o) { return true; } if(o == null || getClass() != o.getClass()) { return false; } final LoginOptions that = (LoginOptions) o; return user == that.user && password == that.password && keychain == that.keychain && publickey == that.publickey && anonymous == that.anonymous && Objects.equals(icon, that.icon); }
LoginOptions { @Override public boolean equals(final Object o) { if(this == o) { return true; } if(o == null || getClass() != o.getClass()) { return false; } final LoginOptions that = (LoginOptions) o; return user == that.user && password == that.password && keychain == that.keychain && publickey == that.publickey && anonymous == that.anonymous && Objects.equals(icon, that.icon); } }
LoginOptions { @Override public boolean equals(final Object o) { if(this == o) { return true; } if(o == null || getClass() != o.getClass()) { return false; } final LoginOptions that = (LoginOptions) o; return user == that.user && password == that.password && keychain == that.keychain && publickey == that.publickey && anonymous == that.anonymous && Objects.equals(icon, that.icon); } LoginOptions();  LoginOptions(final LoginOptions copy);  LoginOptions(final Protocol protocol); }
LoginOptions { @Override public boolean equals(final Object o) { if(this == o) { return true; } if(o == null || getClass() != o.getClass()) { return false; } final LoginOptions that = (LoginOptions) o; return user == that.user && password == that.password && keychain == that.keychain && publickey == that.publickey && anonymous == that.anonymous && Objects.equals(icon, that.icon); } LoginOptions();  LoginOptions(final LoginOptions copy);  LoginOptions(final Protocol protocol); LoginOptions configure(final Protocol protocol); LoginOptions user(boolean e); LoginOptions password(boolean e); LoginOptions token(boolean e); LoginOptions oauth(boolean e); LoginOptions keychain(boolean e); LoginOptions publickey(boolean e); LoginOptions anonymous(boolean e); LoginOptions icon(String icon); boolean user(); boolean password(); boolean token(); boolean keychain(); boolean publickey(); boolean certificate(); boolean anonymous(); boolean oauth(); String icon(); LoginOptions usernamePlaceholder(final String usernamePlaceholder); LoginOptions passwordPlaceholder(final String passwordPlaceholder); String getUsernamePlaceholder(); String getPasswordPlaceholder(); @Override boolean equals(final Object o); @Override int hashCode(); }
LoginOptions { @Override public boolean equals(final Object o) { if(this == o) { return true; } if(o == null || getClass() != o.getClass()) { return false; } final LoginOptions that = (LoginOptions) o; return user == that.user && password == that.password && keychain == that.keychain && publickey == that.publickey && anonymous == that.anonymous && Objects.equals(icon, that.icon); } LoginOptions();  LoginOptions(final LoginOptions copy);  LoginOptions(final Protocol protocol); LoginOptions configure(final Protocol protocol); LoginOptions user(boolean e); LoginOptions password(boolean e); LoginOptions token(boolean e); LoginOptions oauth(boolean e); LoginOptions keychain(boolean e); LoginOptions publickey(boolean e); LoginOptions anonymous(boolean e); LoginOptions icon(String icon); boolean user(); boolean password(); boolean token(); boolean keychain(); boolean publickey(); boolean certificate(); boolean anonymous(); boolean oauth(); String icon(); LoginOptions usernamePlaceholder(final String usernamePlaceholder); LoginOptions passwordPlaceholder(final String passwordPlaceholder); String getUsernamePlaceholder(); String getPasswordPlaceholder(); @Override boolean equals(final Object o); @Override int hashCode(); public boolean user; public boolean password; public boolean token; public boolean oauth; public boolean keychain; public boolean publickey; public boolean certificate; public boolean anonymous; public String icon; public String usernamePlaceholder; public String passwordPlaceholder; }