diff options
Diffstat (limited to 'src/eu/siacs/conversations/entities/AbstractEntity.java')
-rw-r--r-- | src/eu/siacs/conversations/entities/AbstractEntity.java | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/eu/siacs/conversations/entities/AbstractEntity.java b/src/eu/siacs/conversations/entities/AbstractEntity.java new file mode 100644 index 00000000..0297fa66 --- /dev/null +++ b/src/eu/siacs/conversations/entities/AbstractEntity.java @@ -0,0 +1,25 @@ +package eu.siacs.conversations.entities; + +import java.io.Serializable; + +import android.content.ContentValues; + +public abstract class AbstractEntity implements Serializable { + + private static final long serialVersionUID = -1895605706690653719L; + + public static final String UUID = "uuid"; + + protected String uuid; + + public String getUuid() { + return this.uuid; + } + + public abstract ContentValues getContentValues(); + + public boolean equals(AbstractEntity entity) { + return this.getUuid().equals(entity.getUuid()); + } + +} |