package dk.statsbiblioteket.medieplatform.autonomous;

import java.util.Date;

/** An event that have taken place on a batch */
public class Event {

    private String eventID;
    private boolean success;
    private String details;
    private Date date;

    /** No-args constructor */
    public Event() {
    }

    public String getEventID() {
        return eventID;
    }

    public void setEventID(String eventID) {
        this.eventID = eventID;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getDetails() {
        return details;
    }

    public void setDetails(String details) {
        this.details = details;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }
}

@@ -881,10 +881,1233 @@
 ;%0A    %7D%0A
+    %0A    @Override%0A    public int hashCode() %7B%0A        final int prime = 31;%0A        int result = 1;%0A        result = prime * result + ((date == null) ? 0 : date.hashCode());%0A        result = prime * result + ((eventID == null) ? 0 : eventID.hashCode());%0A        result = prime * result + (success ? 1231 : 1237);%0A        return result;%0A    %7D%0A%0A    @Override%0A    public boolean equals(Object obj) %7B%0A        if (this == obj)%0A            return true;%0A        if (obj == null)%0A            return false;%0A        if (getClass() != obj.getClass())%0A            return false;%0A        Event other = (Event) obj;%0A        if (date == null) %7B%0A            if (other.date != null)%0A                return false;%0A        %7D else if (!date.equals(other.date))%0A            return false;%0A        if (eventID == null) %7B%0A            if (other.eventID != null)%0A                return false;%0A        %7D else if (!eventID.equals(other.eventID))%0A            return false;%0A        if (success != other.success)%0A            return false;%0A        return true;%0A    %7D%0A%0A    @Override%0A    public String toString() %7B%0A        return %22Event %5BeventID=%22 + eventID + %22, success=%22 + success%0A                + %22, details=%22 + details + %22, date=%22 + date + %22%5D%22;%0A    %7D%0A%0A
 %7D%0A

add toString, equals and hashCode to Event class