Commit 6f83c7ce authored by Ricki Hirner's avatar Ricki Hirner 🐑

Add hashCode for Contact

parent 628ef73f
Pipeline #5809365 passed with stage
in 10 minutes and 16 seconds
......@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-3.2.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-bin.zip
......@@ -72,7 +72,9 @@ import ezvcard.property.Url;
import lombok.Cleanup;
import lombok.Getter;
import lombok.NonNull;
import lombok.ToString;
@ToString(of={ "id","fileName","eTag" })
public class AndroidContact {
public static final String
COLUMN_FILENAME = RawContacts.SOURCE_ID,
......
......@@ -8,9 +8,6 @@
package at.bitfire.vcard4android;
import android.net.Uri;
import android.text.TextUtils;
import org.apache.commons.lang3.StringUtils;
import java.io.IOException;
......@@ -62,9 +59,11 @@ import ezvcard.property.Uid;
import ezvcard.property.Url;
import ezvcard.property.VCardProperty;
import lombok.Cleanup;
import lombok.EqualsAndHashCode;
import lombok.NonNull;
import lombok.ToString;
@EqualsAndHashCode()
@ToString(of={"uid","displayName","givenName","familyName"})
public class Contact {
// productID (if set) will be used to generate a PRODID property.
......
......@@ -8,6 +8,9 @@
package at.bitfire.vcard4android;
import lombok.EqualsAndHashCode;
@EqualsAndHashCode
public class LabeledProperty<T> {
public final static String PROPERTY_AB_LABEL = "X-ABLabel";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment