@Test public void testEquals() { LineCredential expected = new LineCredential( new LineAccessToken("accessToken", 1L, 2L), Arrays.asList(Scope.FRIEND, Scope.GROUP)); assertTrue(expected.equals(new LineCredential( new LineAccessToken("accessToken", 1L, 2L), Arrays.asList(Scope.FRIEND, Scope.GROUP)))); assertFalse(expected.equals(new LineCredential( new LineAccessToken("accessToken2", 1L, 2L), Arrays.asList(Scope.FRIEND, Scope.GROUP)))); assertFalse(expected.equals(new LineCredential( new LineAccessToken("accessToken", 1L, 2L), Arrays.asList(Scope.FRIEND)))); }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } LineCredential that = (LineCredential) o; if (!accessToken.equals(that.accessToken)) { return false; } return scopes.equals(that.scopes); }
LineCredential implements Parcelable { @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } LineCredential that = (LineCredential) o; if (!accessToken.equals(that.accessToken)) { return false; } return scopes.equals(that.scopes); } }
LineCredential implements Parcelable { @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } LineCredential that = (LineCredential) o; if (!accessToken.equals(that.accessToken)) { return false; } return scopes.equals(that.scopes); } LineCredential(
            @NonNull LineAccessToken accessToken, @NonNull List<Scope> scopes); private  LineCredential(@NonNull Parcel in); }
LineCredential implements Parcelable { @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } LineCredential that = (LineCredential) o; if (!accessToken.equals(that.accessToken)) { return false; } return scopes.equals(that.scopes); } LineCredential(
            @NonNull LineAccessToken accessToken, @NonNull List<Scope> scopes); private  LineCredential(@NonNull Parcel in); @Override void writeToParcel(Parcel dest, int flags); @Override int describeContents(); @NonNull LineAccessToken getAccessToken(); @NonNull List<Scope> getScopes(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
LineCredential implements Parcelable { @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } LineCredential that = (LineCredential) o; if (!accessToken.equals(that.accessToken)) { return false; } return scopes.equals(that.scopes); } LineCredential(
            @NonNull LineAccessToken accessToken, @NonNull List<Scope> scopes); private  LineCredential(@NonNull Parcel in); @Override void writeToParcel(Parcel dest, int flags); @Override int describeContents(); @NonNull LineAccessToken getAccessToken(); @NonNull List<Scope> getScopes(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); static final Parcelable.Creator<LineCredential> CREATOR; }