Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
33827 ranu 1
package com.spice.profitmandi.dao.model;
2
 
3
import java.util.Objects;
4
 
5
public class LoanCountByFofoIdModel {
6
    private int fofoId;
7
    private Long loanCount;
8
 
9
    public LoanCountByFofoIdModel(int fofoId, Long loanCount) {
10
        this.fofoId = fofoId;
11
        this.loanCount = loanCount;
12
    }
13
 
14
    public int getFofoId() {
15
        return fofoId;
16
    }
17
 
18
    public void setFofoId(int fofoId) {
19
        this.fofoId = fofoId;
20
    }
21
 
22
    public Long getLoanCount() {
23
        return loanCount;
24
    }
25
 
26
    public void setLoanCount(Long loanCount) {
27
        this.loanCount = loanCount;
28
    }
29
 
30
    @Override
31
    public boolean equals(Object o) {
32
        if (this == o) return true;
33
        if (o == null || getClass() != o.getClass()) return false;
34
        LoanCountByFofoIdModel that = (LoanCountByFofoIdModel) o;
35
        return fofoId == that.fofoId && Objects.equals(loanCount, that.loanCount);
36
    }
37
 
38
    @Override
39
    public int hashCode() {
40
        return Objects.hash(fofoId, loanCount);
41
    }
42
 
43
    @Override
44
    public String toString() {
45
        return "LoanCountByFofoIdModel{" +
46
                "fofoId=" + fofoId +
47
                ", loanCount=" + loanCount +
48
                '}';
49
    }
50
}
51