aboutsummaryrefslogtreecommitdiffstats
path: root/src/de/gultsch/chat/entities/AbstractEntity.java
blob: 31a19fc0b847492969131315c82077477c6d4dc3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package de.gultsch.chat.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());
	}
	
}