All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.singingbush.dubclient.data.DownloadStats Maven / Gradle / Ivy

Go to download

Conveniently call the REST API on code.dlang.org and other DUB repositories

There is a newer version: 0.3.0
Show newest version
package com.singingbush.dubclient.data;

import java.util.Objects;

/**
 * @author Samael Bate (singingbush)
 * created on 16/06/18
 */
public class DownloadStats {

    private Integer total;
    private Integer monthly;
    private Integer weekly;
    private Integer daily;

    public Integer getTotal() {
        return total;
    }

    public Integer getMonthly() {
        return monthly;
    }

    public Integer getWeekly() {
        return weekly;
    }

    public Integer getDaily() {
        return daily;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        final DownloadStats that = (DownloadStats) o;
        return Objects.equals(total, that.total) &&
            Objects.equals(monthly, that.monthly) &&
            Objects.equals(weekly, that.weekly) &&
            Objects.equals(daily, that.daily);
    }

    @Override
    public int hashCode() {
        return Objects.hash(total, monthly, weekly, daily);
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("DownloadStats{");
        sb.append("total=").append(total);
        sb.append(", monthly=").append(monthly);
        sb.append(", weekly=").append(weekly);
        sb.append(", daily=").append(daily);
        sb.append('}');
        return sb.toString();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy