-
Notifications
You must be signed in to change notification settings - Fork 38
Expand file tree
/
Copy pathSmartRateCollection.java
More file actions
51 lines (44 loc) · 1.16 KB
/
SmartRateCollection.java
File metadata and controls
51 lines (44 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
package com.easypost.model;
import java.util.ArrayList;
import java.util.List;
public final class SmartRateCollection {
private List<SmartRate> smartRates;
/**
* Get this SmartRateCollection's Smartrate objects.
*
* @return List of Smartrate objects.
*/
public List<SmartRate> getSmartRates() {
return this.smartRates;
}
/**
* Set this SmartRateCollection's Smartrate objects.
*
* @param smartRates List of Smartrate objects.
*/
public void setSmartRates(final List<SmartRate> smartRates) {
this.smartRates = smartRates;
}
/**
* Constructor.
*/
public SmartRateCollection() {
this.smartRates = new ArrayList<SmartRate>();
}
/**
* Create a SmartRateCollection from a list of rates.
*
* @param smartRates List of Smartrate objects
*/
public SmartRateCollection(final List<SmartRate> smartRates) {
setSmartRates(smartRates);
}
/**
* Add a SmartRate object to this SmartRateCollection.
*
* @param rate Rate object
*/
public void addRate(final SmartRate rate) {
smartRates.add(rate);
}
}