@Test public void testEquals() { LineFriendProfile expected = new LineFriendProfile( "userId", "displayName", Uri.parse("http: assertTrue(expected.equals(new LineFriendProfile( "userId", "displayName", Uri.parse("http: "overriddenDisplayName"))); assertFalse(expected.equals(new LineFriendProfile( "userId2", "displayName", Uri.parse("http: "overriddenDisplayName"))); assertFalse(expected.equals(new LineFriendProfile( "userId", "displayName2", Uri.parse("http: "overriddenDisplayName"))); assertFalse(expected.equals(new LineFriendProfile( "userId", "displayName", Uri.parse("http: "overriddenDisplayName"))); assertFalse(expected.equals(new LineFriendProfile( "userId", "displayName", Uri.parse("http: "overriddenDisplayName"))); assertFalse(expected.equals(new LineFriendProfile( "userId", "displayName", Uri.parse("http: "overriddenDisplayName2"))); }
@Override public boolean equals(final Object o) { if (this == o) { return true; } if (!(o instanceof LineFriendProfile)) { return false; } if (!super.equals(o)) { return false; } final LineFriendProfile that = (LineFriendProfile) o; return overriddenDisplayName != null ? overriddenDisplayName.equals(that.overriddenDisplayName) : that.overriddenDisplayName == null; }
LineFriendProfile extends LineProfile { @Override public boolean equals(final Object o) { if (this == o) { return true; } if (!(o instanceof LineFriendProfile)) { return false; } if (!super.equals(o)) { return false; } final LineFriendProfile that = (LineFriendProfile) o; return overriddenDisplayName != null ? overriddenDisplayName.equals(that.overriddenDisplayName) : that.overriddenDisplayName == null; } }
LineFriendProfile extends LineProfile { @Override public boolean equals(final Object o) { if (this == o) { return true; } if (!(o instanceof LineFriendProfile)) { return false; } if (!super.equals(o)) { return false; } final LineFriendProfile that = (LineFriendProfile) o; return overriddenDisplayName != null ? overriddenDisplayName.equals(that.overriddenDisplayName) : that.overriddenDisplayName == null; } LineFriendProfile(@NonNull final String userId,
                             @NonNull final String displayName,
                             @Nullable final Uri pictureUrl,
                             @Nullable final String statusMessage,
                             @NonNull final String overriddenDisplayName); protected  LineFriendProfile(@NonNull final Parcel in); }
LineFriendProfile extends LineProfile { @Override public boolean equals(final Object o) { if (this == o) { return true; } if (!(o instanceof LineFriendProfile)) { return false; } if (!super.equals(o)) { return false; } final LineFriendProfile that = (LineFriendProfile) o; return overriddenDisplayName != null ? overriddenDisplayName.equals(that.overriddenDisplayName) : that.overriddenDisplayName == null; } LineFriendProfile(@NonNull final String userId,
                             @NonNull final String displayName,
                             @Nullable final Uri pictureUrl,
                             @Nullable final String statusMessage,
                             @NonNull final String overriddenDisplayName); protected  LineFriendProfile(@NonNull final Parcel in); @Override void writeToParcel(final Parcel dest, final int flags); @Nullable String getOverriddenDisplayName(); @NonNull String getAvailableDisplayName(); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString(); }
LineFriendProfile extends LineProfile { @Override public boolean equals(final Object o) { if (this == o) { return true; } if (!(o instanceof LineFriendProfile)) { return false; } if (!super.equals(o)) { return false; } final LineFriendProfile that = (LineFriendProfile) o; return overriddenDisplayName != null ? overriddenDisplayName.equals(that.overriddenDisplayName) : that.overriddenDisplayName == null; } LineFriendProfile(@NonNull final String userId,
                             @NonNull final String displayName,
                             @Nullable final Uri pictureUrl,
                             @Nullable final String statusMessage,
                             @NonNull final String overriddenDisplayName); protected  LineFriendProfile(@NonNull final Parcel in); @Override void writeToParcel(final Parcel dest, final int flags); @Nullable String getOverriddenDisplayName(); @NonNull String getAvailableDisplayName(); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString(); static final Parcelable.Creator<LineFriendProfile> CREATOR; }