package de.qabel.ackack;

import java.io.Serializable;

/**
* Created by tox on 11/25/14.
*/
public class MessageInfo implements Cloneable {
    private Actor sender;
    private long time;
    private String type;

    public Actor getSender() {
        return sender;
    }

    public long getTime() {
        return time;
    }

    public String getType() {
        return type;
    }

    public void setSender(Actor sender) {
        this.sender = sender;
    }

    public void setTime(long time) {
        this.time = time;
    }

    public void setType(String type) {
        this.type = type;
    }
    
    public void answer(final Serializable... data) {
    	if (this.sender != null) {
            this.sender.post(this, data);
    	}
    	
    }
}

@@ -57,38 +57,50 @@
 /**%0A
+ 
 * 
-Created by tox on 11/25/14.%0A
+Save information about the message%0A *%0A 
 */%0Ap
@@ -146,16 +146,52 @@
 eable %7B%0A
+%09/**%0A%09 * Sender of the message%0A%09 */%0A
     priv
@@ -260,408 +260,1067 @@
 pe;%0A
-%0A    public Actor getSender() %7B%0A        return sender;%0A    %7D%0A%0A    public long getTime() %7B%0A        return time;%0A    %7D%0A%0A    public String getType() %7B%0A        return type;%0A    %7D%0A%0A    public void setSender(Actor sender) %7B%0A        this.sender = sender;%0A    %7D%0A%0A    public void setTime(long time) %7B%0A        this.time = time;%0A    %7D%0A%0A    public void setType(String type) %7B%0A        this.type = type;%0A    %7D%0A    
+    %0A    /**%0A     * Get the sender of the message%0A     * @return Sender of the message or null if not set%0A     */%0A    public Actor getSender() %7B%0A        return sender;%0A    %7D%0A%0A    /**%0A     * Get sending time of the message%0A     * @return Sending time or 0 if not set%0A     */%0A    public long getTime() %7B%0A        return time;%0A    %7D%0A%0A    /**%0A     * Get type of the message%0A     * @return Type of message or null if empty%0A     */%0A    public String getType() %7B%0A        return type;%0A    %7D%0A%0A    /**%0A     * Set sender of the message%0A     * @param sender Sender of the message%0A     */%0A    public void setSender(Actor sender) %7B%0A        this.sender = sender;%0A    %7D%0A%0A    /**%0A     * Set sending time of the message%0A     * @param time Sending time%0A     */%0A    public void setTime(long time) %7B%0A        this.time = time;%0A    %7D%0A%0A    /**%0A     * Set type of the message%0A     * @param type Type of the messsage%0A     */%0A    public void setType(String type) %7B%0A        this.type = type;%0A    %7D%0A    %0A    /**%0A     * Answer to the received message%0A     * @param data Data to send%0A     */
 %0A   

Add documentation