@Test public void testEquals() { LineAuthenticationConfig expected = new LineAuthenticationConfig.Builder("1") .openidDiscoveryDocumentUrl(Uri.parse("https: .apiBaseUrl(Uri.parse("https: .webLoginPageUrl(Uri.parse("https: .build(); assertTrue(expected.equals(new LineAuthenticationConfig.Builder("1") .openidDiscoveryDocumentUrl(Uri.parse("https: .apiBaseUrl(Uri.parse("https: .webLoginPageUrl(Uri.parse("https: .build())); assertFalse(expected.equals(new LineAuthenticationConfig.Builder("2") .openidDiscoveryDocumentUrl(Uri.parse("https: .apiBaseUrl(Uri.parse("https: .webLoginPageUrl(Uri.parse("https: .build())); assertFalse(expected.equals(new LineAuthenticationConfig.Builder("1") .openidDiscoveryDocumentUrl(Uri.parse("https: .apiBaseUrl(Uri.parse("https: .webLoginPageUrl(Uri.parse("https: .build())); assertFalse(expected.equals(new LineAuthenticationConfig.Builder("1") .openidDiscoveryDocumentUrl(Uri.parse("https: .apiBaseUrl(Uri.parse("https: .webLoginPageUrl(Uri.parse("https: .build())); assertFalse(expected.equals(new LineAuthenticationConfig.Builder("1") .openidDiscoveryDocumentUrl(Uri.parse("https: .apiBaseUrl(Uri.parse("https: .webLoginPageUrl(Uri.parse("https: .build())); assertFalse(expected.equals(new LineAuthenticationConfig.Builder("1") .openidDiscoveryDocumentUrl(Uri.parse("https: .apiBaseUrl(Uri.parse("https: .webLoginPageUrl(Uri.parse("https: .disableLineAppAuthentication() .build())); assertFalse(expected.equals(new LineAuthenticationConfig.Builder("1") .openidDiscoveryDocumentUrl(Uri.parse("https: .apiBaseUrl(Uri.parse("https: .webLoginPageUrl(Uri.parse("https: .disableEncryptorPreparation() .build())); }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } LineAuthenticationConfig that = (LineAuthenticationConfig) o; if (isLineAppAuthenticationDisabled != that.isLineAppAuthenticationDisabled) { return false; } if (isEncryptorPreparationDisabled != that.isEncryptorPreparationDisabled) { return false; } if (!channelId.equals(that.channelId)) { return false; } if (!openidDiscoveryDocumentUrl.equals(that.openidDiscoveryDocumentUrl)) { return false; } if (!apiBaseUrl.equals(that.apiBaseUrl)) { return false; } return webLoginPageUrl.equals(that.webLoginPageUrl); }
LineAuthenticationConfig implements Parcelable { @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } LineAuthenticationConfig that = (LineAuthenticationConfig) o; if (isLineAppAuthenticationDisabled != that.isLineAppAuthenticationDisabled) { return false; } if (isEncryptorPreparationDisabled != that.isEncryptorPreparationDisabled) { return false; } if (!channelId.equals(that.channelId)) { return false; } if (!openidDiscoveryDocumentUrl.equals(that.openidDiscoveryDocumentUrl)) { return false; } if (!apiBaseUrl.equals(that.apiBaseUrl)) { return false; } return webLoginPageUrl.equals(that.webLoginPageUrl); } }
LineAuthenticationConfig implements Parcelable { @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } LineAuthenticationConfig that = (LineAuthenticationConfig) o; if (isLineAppAuthenticationDisabled != that.isLineAppAuthenticationDisabled) { return false; } if (isEncryptorPreparationDisabled != that.isEncryptorPreparationDisabled) { return false; } if (!channelId.equals(that.channelId)) { return false; } if (!openidDiscoveryDocumentUrl.equals(that.openidDiscoveryDocumentUrl)) { return false; } if (!apiBaseUrl.equals(that.apiBaseUrl)) { return false; } return webLoginPageUrl.equals(that.webLoginPageUrl); } private  LineAuthenticationConfig(@NonNull Builder builder); private  LineAuthenticationConfig(@NonNull Parcel in); }
LineAuthenticationConfig implements Parcelable { @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } LineAuthenticationConfig that = (LineAuthenticationConfig) o; if (isLineAppAuthenticationDisabled != that.isLineAppAuthenticationDisabled) { return false; } if (isEncryptorPreparationDisabled != that.isEncryptorPreparationDisabled) { return false; } if (!channelId.equals(that.channelId)) { return false; } if (!openidDiscoveryDocumentUrl.equals(that.openidDiscoveryDocumentUrl)) { return false; } if (!apiBaseUrl.equals(that.apiBaseUrl)) { return false; } return webLoginPageUrl.equals(that.webLoginPageUrl); } private  LineAuthenticationConfig(@NonNull Builder builder); private  LineAuthenticationConfig(@NonNull Parcel in); @Override void writeToParcel(Parcel dest, int flags); @Override int describeContents(); @NonNull String getChannelId(); @NonNull Uri getOpenidDiscoveryDocumentUrl(); @NonNull Uri getApiBaseUrl(); @NonNull Uri getWebLoginPageUrl(); boolean isLineAppAuthenticationDisabled(); boolean isEncryptorPreparationDisabled(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
LineAuthenticationConfig implements Parcelable { @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } LineAuthenticationConfig that = (LineAuthenticationConfig) o; if (isLineAppAuthenticationDisabled != that.isLineAppAuthenticationDisabled) { return false; } if (isEncryptorPreparationDisabled != that.isEncryptorPreparationDisabled) { return false; } if (!channelId.equals(that.channelId)) { return false; } if (!openidDiscoveryDocumentUrl.equals(that.openidDiscoveryDocumentUrl)) { return false; } if (!apiBaseUrl.equals(that.apiBaseUrl)) { return false; } return webLoginPageUrl.equals(that.webLoginPageUrl); } private  LineAuthenticationConfig(@NonNull Builder builder); private  LineAuthenticationConfig(@NonNull Parcel in); @Override void writeToParcel(Parcel dest, int flags); @Override int describeContents(); @NonNull String getChannelId(); @NonNull Uri getOpenidDiscoveryDocumentUrl(); @NonNull Uri getApiBaseUrl(); @NonNull Uri getWebLoginPageUrl(); boolean isLineAppAuthenticationDisabled(); boolean isEncryptorPreparationDisabled(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); static final Parcelable.Creator<LineAuthenticationConfig> CREATOR; }