package lan.dk.podcastserver.utils.facade.stats;

import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;

import java.time.LocalDate;

/**
 * Created by kevin on 06/04/15.
 */
public class NumberOfItemByDateWrapper {

    private LocalDate date;
    private Long numberOfItems;

    public NumberOfItemByDateWrapper(LocalDate date, Long numberOfItems) {
        this.date = date;
        this.numberOfItems = numberOfItems;
    }

    public LocalDate getDate() {
        return date;
    }

    public Long getNumberOfItems() {
        return numberOfItems;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof NumberOfItemByDateWrapper)) return false;

        NumberOfItemByDateWrapper that = (NumberOfItemByDateWrapper) o;
        return new EqualsBuilder()
                .append(date, that.date)
                .isEquals();
    }

    @Override
    public int hashCode() {
        return new HashCodeBuilder(17, 37)
                .append(date)
                .toHashCode();
    }
}

@@ -43,16 +43,38 @@
 stats;%0A%0A
+import lombok.Getter;%0A
 import o
@@ -116,24 +116,24 @@
 alsBuilder;%0A
-
 import org.a
@@ -248,16 +248,24 @@
 15.%0A */%0A
+@Getter%0A
 public c
@@ -456,24 +456,24 @@
 ate = date;%0A
+
         this
@@ -515,143 +515,8 @@
  %7D%0A%0A
-    public LocalDate getDate() %7B%0A        return date;%0A    %7D%0A%0A    public Long getNumberOfItems() %7B%0A        return numberOfItems;%0A    %7D%0A%0A
     

use getter from lombok project to simplify code