/**
 * Copyright (c) 2015 Bosch Software Innovations GmbH and others.
 *
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 */
package org.eclipse.hawkbit.cache;

/**
 * Cache Object for downloading an artifact.
 */
public class DownloadArtifactCache {

    private final DownloadType downloadType;
    private final String id;

    /**
     * Constructor.
     *
     * @param downloadType
     *            the type for searching the artifact.
     * @param id
     *            the searching id e.g. sha1, md5
     */
    public DownloadArtifactCache(final DownloadType downloadType, final String id) {
        super();
        this.downloadType = downloadType;
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public DownloadType getDownloadType() {
        return downloadType;
    }

}

@@ -799,25 +799,8 @@
 ) %7B%0A
-        super();%0A
     
@@ -833,24 +833,24 @@
 wnloadType;%0A
+
         this
@@ -1000,10 +1000,856 @@
 %0A    %7D%0A%0A
+    @Override%0A    public int hashCode() %7B%0A        final int prime = 31;%0A        int result = 1;%0A        result = prime * result + ((downloadType == null) ? 0 : downloadType.hashCode());%0A        result = prime * result + ((id == null) ? 0 : id.hashCode());%0A        return result;%0A    %7D%0A%0A    @Override%0A    public boolean equals(final 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        final DownloadArtifactCache other = (DownloadArtifactCache) obj;%0A        if (downloadType != other.downloadType)%0A            return false;%0A        if (id == null) %7B%0A            if (other.id != null)%0A                return false;%0A        %7D else if (!id.equals(other.id))%0A            return false;%0A        return true;%0A    %7D%0A
 %7D%0A

add missing hash-code and equals for DownloadArtifactCache (#345)