BrightSide Workbench Full Report + Source Code
ContractExpiryStub.java
Go to the documentation of this file.
1 /*
2  * TurrĂ³ i Cutiller Foundation. License notice.
3  * Copyright (C) 2022 Lluis TurrĂ³ Cutiller <http://www.turro.org/>
4  *
5  * This program is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU Affero General Public License as published by
7  * the Free Software Foundation, either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU Affero General Public License for more details.
14  *
15  * You should have received a copy of the GNU Affero General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 package org.turro.financials.stub;
20 
21 import java.util.HashSet;
22 import java.util.Set;
23 import org.turro.financials.entity.ContractExpiry;
24 import org.turro.reflection.stub.DefaultStub;
25 
30 public class ContractExpiryStub extends DefaultStub {
31 
32  private LineTypeStubmin lineType;
33  private String concept;
34  private int daysToAdd, dayOfWeek;
35  private double percentValue, amountValue;
36  private Set<Integer> daysOfMonth = new HashSet<>();
37  private Set<Integer> excludedMonths = new HashSet<>();
38 
39  public ContractExpiryStub(ContractExpiry contractExpiry) {
40  silentlyInitializeValues(this);
41  }
42 
44  return lineType;
45  }
46 
47  public void setLineType(LineTypeStubmin lineType) {
48  this.lineType = lineType;
49  }
50 
51  public String getConcept() {
52  return concept;
53  }
54 
55  public void setConcept(String concept) {
56  this.concept = concept;
57  }
58 
59  public int getDaysToAdd() {
60  return daysToAdd;
61  }
62 
63  public void setDaysToAdd(int daysToAdd) {
64  this.daysToAdd = daysToAdd;
65  }
66 
67  public int getDayOfWeek() {
68  return dayOfWeek;
69  }
70 
71  public void setDayOfWeek(int dayOfWeek) {
72  this.dayOfWeek = dayOfWeek;
73  }
74 
75  public double getPercentValue() {
76  return percentValue;
77  }
78 
79  public void setPercentValue(double percentValue) {
80  this.percentValue = percentValue;
81  }
82 
83  public double getAmountValue() {
84  return amountValue;
85  }
86 
87  public void setAmountValue(double amountValue) {
88  this.amountValue = amountValue;
89  }
90 
91  public Set<Integer> getDaysOfMonth() {
92  return daysOfMonth;
93  }
94 
95  public void setDaysOfMonth(Set<Integer> daysOfMonth) {
96  this.daysOfMonth = daysOfMonth;
97  }
98 
99  public Set<Integer> getExcludedMonths() {
100  return excludedMonths;
101  }
102 
103  public void setExcludedMonths(Set<Integer> excludedMonths) {
104  this.excludedMonths = excludedMonths;
105  }
106 
107 }
void setExcludedMonths(Set< Integer > excludedMonths)
ContractExpiryStub(ContractExpiry contractExpiry)
void setDaysOfMonth(Set< Integer > daysOfMonth)