Subversion Repositories SmartDukaan

Rev

Rev 34608 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
34608 ranu 1
package com.spice.profitmandi.dao.model;
2
 
3
import java.util.Objects;
4
 
5
public class BiSecondaryModel {
6
    double secondaryTarget;
7
    double secondaryAchieved;
8
    double SecondaryReturn;
9
    double netSecondary;
10
    double secondaryAchievedPercent;
11
    double tertiary;
12
    double tertiaryUnBilled;
13
 
34619 ranu 14
    public BiSecondaryModel(double secondaryTarget, double secondaryAchieved, double secondaryReturn, double netSecondary, double secondaryAchievedPercent, double tertiary, double tertiaryUnBilled) {
15
        this.secondaryTarget = secondaryTarget;
16
        this.secondaryAchieved = secondaryAchieved;
17
        SecondaryReturn = secondaryReturn;
18
        this.netSecondary = netSecondary;
19
        this.secondaryAchievedPercent = secondaryAchievedPercent;
20
        this.tertiary = tertiary;
21
        this.tertiaryUnBilled = tertiaryUnBilled;
22
    }
23
 
34608 ranu 24
    public double getSecondaryTarget() {
25
        return secondaryTarget;
26
    }
27
 
28
    public void setSecondaryTarget(double secondaryTarget) {
29
        this.secondaryTarget = secondaryTarget;
30
    }
31
 
32
    public double getSecondaryAchieved() {
33
        return secondaryAchieved;
34
    }
35
 
36
    public void setSecondaryAchieved(double secondaryAchieved) {
37
        this.secondaryAchieved = secondaryAchieved;
38
    }
39
 
40
    public double getSecondaryReturn() {
41
        return SecondaryReturn;
42
    }
43
 
44
    public void setSecondaryReturn(double secondaryReturn) {
45
        SecondaryReturn = secondaryReturn;
46
    }
47
 
48
    public double getNetSecondary() {
49
        return netSecondary;
50
    }
51
 
52
    public void setNetSecondary(double netSecondary) {
53
        this.netSecondary = netSecondary;
54
    }
55
 
56
    public double getSecondaryAchievedPercent() {
57
        return secondaryAchievedPercent;
58
    }
59
 
60
    public void setSecondaryAchievedPercent(double secondaryAchievedPercent) {
61
        this.secondaryAchievedPercent = secondaryAchievedPercent;
62
    }
63
 
64
    public double getTertiary() {
65
        return tertiary;
66
    }
67
 
68
    public void setTertiary(double tertiary) {
69
        this.tertiary = tertiary;
70
    }
71
 
72
    public double getTertiaryUnBilled() {
73
        return tertiaryUnBilled;
74
    }
75
 
76
    public void setTertiaryUnBilled(double tertiaryUnBilled) {
77
        this.tertiaryUnBilled = tertiaryUnBilled;
78
    }
79
 
80
    @Override
81
    public boolean equals(Object o) {
82
        if (this == o) return true;
83
        if (o == null || getClass() != o.getClass()) return false;
84
        BiSecondaryModel that = (BiSecondaryModel) o;
85
        return Double.compare(secondaryTarget, that.secondaryTarget) == 0 && Double.compare(secondaryAchieved, that.secondaryAchieved) == 0 && Double.compare(SecondaryReturn, that.SecondaryReturn) == 0 && Double.compare(netSecondary, that.netSecondary) == 0 && Double.compare(secondaryAchievedPercent, that.secondaryAchievedPercent) == 0 && Double.compare(tertiary, that.tertiary) == 0 && Double.compare(tertiaryUnBilled, that.tertiaryUnBilled) == 0;
86
    }
87
 
88
    @Override
89
    public int hashCode() {
90
        return Objects.hash(secondaryTarget, secondaryAchieved, SecondaryReturn, netSecondary, secondaryAchievedPercent, tertiary, tertiaryUnBilled);
91
    }
92
 
93
    @Override
94
    public String toString() {
95
        return "BiSecondaryModel{" +
96
                "secondaryTarget=" + secondaryTarget +
97
                ", secondaryAchieved=" + secondaryAchieved +
98
                ", SecondaryReturn=" + SecondaryReturn +
99
                ", netSecondary=" + netSecondary +
100
                ", secondaryAchievedPercent=" + secondaryAchievedPercent +
101
                ", tertiary=" + tertiary +
102
                ", tertiaryUnBilled=" + tertiaryUnBilled +
103
                '}';
104
    }
105
}