package fr.tvbarthel.apps.cameracolorpicker.data;

/**
 * TODO comment.
 */
public class ColorItem {

    protected final long mId;
    protected int mColor;
    protected long mCreationTime;


    public ColorItem(long id, int color) {
        mId = id;
        mColor = color;
        mCreationTime = System.currentTimeMillis();
    }

    public long getId() {
        return mId;
    }

    public int getColor() {
        return mColor;
    }

    public void setColor(int color) {
        mColor = color;
    }

    public long getCreationTime() {
        return mCreationTime;
    }

    public void setCreationTime(long creationTime) {
        mCreationTime = creationTime;
    }
}

@@ -55,81 +55,221 @@
 %0A * 
-TODO comment.%0A */%0Apublic class ColorItem %7B%0A%0A    protected final long mId;
+A simple data class representing a color.%0A */%0Apublic class ColorItem %7B%0A%0A    /**%0A     * The id of the color.%0A     */%0A    protected final long mId;%0A%0A    /**%0A     * An int representing the value of the color.%0A     */
 %0A   
@@ -279,16 +279,22 @@
 otected 
+final 
 int mCol
@@ -292,24 +292,119 @@
  int mColor;
+%0A%0A    /**%0A     * A long representing the creation time of the color. (In milliseconds).%0A     */
 %0A    protect
@@ -406,16 +406,22 @@
 otected 
+final 
 long mCr
@@ -437,263 +437,909 @@
 e;%0A%0A
-%0A    public ColorItem(long id, int color) %7B%0A        mId = id;%0A        mColor = color;%0A        mCreationTime = System.currentTimeMillis();%0A    %7D%0A%0A    public long getId() %7B%0A        return mId;%0A    %7D%0A%0A    public int getColor() %7B%0A        return mColor;
+    /**%0A     * Create a new %7B@link fr.tvbarthel.apps.cameracolorpicker.data.ColorItem%7D with an id and a color.%0A     *%0A     * @param id    the id of the %7B@link fr.tvbarthel.apps.cameracolorpicker.data.ColorItem%7D. Should be unique.%0A     * @param color the color value.%0A     */%0A    public ColorItem(long id, int color) %7B%0A        mId = id;%0A        mColor = color;%0A        mCreationTime = System.currentTimeMillis();%0A    %7D%0A%0A    /**%0A     * Get the id of the %7B@link fr.tvbarthel.apps.cameracolorpicker.data.ColorItem%7D.%0A     *%0A     * @return the id of the %7B@link fr.tvbarthel.apps.cameracolorpicker.data.ColorItem%7D.%0A     */%0A    public long getId() %7B%0A        return mId;%0A    %7D%0A%0A    /**%0A     * Get the value of the %7B@link fr.tvbarthel.apps.cameracolorpicker.data.ColorItem%7D.%0A     *%0A     * @return an integer representing the color value of the %7B@link fr.tvbarthel.apps.cameracolorpicker.data.ColorItem%7D.
 %0A    
-%7D%0A
+ */
 %0A   
@@ -1350,22 +1350,21 @@
 lic 
-void s
+int g
 etColor(
 int 
@@ -1359,25 +1359,16 @@
 etColor(
-int color
 ) %7B%0A    
@@ -1367,34 +1367,33 @@
 ) %7B%0A        
-mColor = c
+return mC
 olor;%0A    %7D%0A
@@ -1397,80 +1397,197 @@
  %7D%0A%0A
+%0A
     
-public long getC
+/**%0A     * Get the c
 reation
-Time() %7B
+ time of the %7B@link fr.tvbarthel.apps.cameracolorpicker.data.ColorItem%7D.
 %0A    
+ *%0A
     
+ * @
 return 
-mC
+a long representing the c
 reation
-Time;
+ time in milliseconds.
 %0A    
-%7D%0A
+ */
 %0A   
@@ -1598,14 +1598,14 @@
 lic 
-void s
+long g
 etCr
@@ -1619,54 +1619,29 @@
 ime(
-long creationTime) %7B%0A        mCreationTime = c
+) %7B%0A        return mC
 reat
@@ -1655,10 +1655,11 @@
 ;%0A    %7D%0A
+%0A
 %7D%0A

Comment the ColorItem class