@Test public void testEquals() { LineAccessToken expected = new LineAccessToken("accessToken", 1L, 2L); assertTrue(expected.equals(new LineAccessToken("accessToken", 1L, 2L))); assertFalse(expected.equals(new LineAccessToken("accessToken1", 1L, 2L))); assertFalse(expected.equals(new LineAccessToken("accessToken", 2L, 2L))); assertFalse(expected.equals(new LineAccessToken("accessToken", 1L, 1L))); }
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; LineAccessToken that = (LineAccessToken) o; if (expiresInMillis != that.expiresInMillis) return false; if (issuedClientTimeMillis != that.issuedClientTimeMillis) return false; return accessToken.equals(that.accessToken); }
LineAccessToken implements Parcelable { @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; LineAccessToken that = (LineAccessToken) o; if (expiresInMillis != that.expiresInMillis) return false; if (issuedClientTimeMillis != that.issuedClientTimeMillis) return false; return accessToken.equals(that.accessToken); } }
LineAccessToken implements Parcelable { @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; LineAccessToken that = (LineAccessToken) o; if (expiresInMillis != that.expiresInMillis) return false; if (issuedClientTimeMillis != that.issuedClientTimeMillis) return false; return accessToken.equals(that.accessToken); } LineAccessToken(
            @NonNull String accessToken,
            long expiresInMillis,
            long issuedClientTimeMillis); private  LineAccessToken(@NonNull Parcel in); }
LineAccessToken implements Parcelable { @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; LineAccessToken that = (LineAccessToken) o; if (expiresInMillis != that.expiresInMillis) return false; if (issuedClientTimeMillis != that.issuedClientTimeMillis) return false; return accessToken.equals(that.accessToken); } LineAccessToken(
            @NonNull String accessToken,
            long expiresInMillis,
            long issuedClientTimeMillis); private  LineAccessToken(@NonNull Parcel in); @Override int describeContents(); @Override void writeToParcel(Parcel dest, int flags); @NonNull String getTokenString(); long getExpiresInMillis(); long getIssuedClientTimeMillis(); long getEstimatedExpirationTimeMillis(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
LineAccessToken implements Parcelable { @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; LineAccessToken that = (LineAccessToken) o; if (expiresInMillis != that.expiresInMillis) return false; if (issuedClientTimeMillis != that.issuedClientTimeMillis) return false; return accessToken.equals(that.accessToken); } LineAccessToken(
            @NonNull String accessToken,
            long expiresInMillis,
            long issuedClientTimeMillis); private  LineAccessToken(@NonNull Parcel in); @Override int describeContents(); @Override void writeToParcel(Parcel dest, int flags); @NonNull String getTokenString(); long getExpiresInMillis(); long getIssuedClientTimeMillis(); long getEstimatedExpirationTimeMillis(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); static final Parcelable.Creator<LineAccessToken> CREATOR; }