forked from reposense/RepoSense
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLocationsCliArguments.java
More file actions
56 lines (47 loc) · 1.89 KB
/
Copy pathLocationsCliArguments.java
File metadata and controls
56 lines (47 loc) · 1.89 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
52
53
54
55
56
package reposense.model;
import java.nio.file.Path;
import java.time.ZoneId;
import java.util.Date;
import java.util.List;
/**
* Represents command line arguments user supplied when running the program with mandatory field -repos.
*/
public class LocationsCliArguments extends CliArguments {
private List<String> locations;
private boolean isStandaloneConfigIgnored;
public LocationsCliArguments(List<String> locations, Path outputFilePath, Date sinceDate,
Date untilDate, boolean isSinceDateProvided, boolean isUntilDateProvided, List<FileType> formats,
boolean isAutomaticallyLaunching, boolean isStandaloneConfigIgnored, ZoneId zoneId) {
this.locations = locations;
this.outputFilePath = outputFilePath;
this.sinceDate = sinceDate;
this.untilDate = untilDate;
this.isSinceDateProvided = isSinceDateProvided;
this.isUntilDateProvided = isUntilDateProvided;
this.formats = formats;
this.isAutomaticallyLaunching = isAutomaticallyLaunching;
this.isStandaloneConfigIgnored = isStandaloneConfigIgnored;
this.zoneId = zoneId;
}
public List<String> getLocations() {
return locations;
}
public boolean isStandaloneConfigIgnored() {
return isStandaloneConfigIgnored;
}
@Override
public boolean equals(Object other) {
// short circuit if same object
if (this == other) {
return true;
}
// instanceof handles null
if (!(other instanceof LocationsCliArguments)) {
return false;
}
LocationsCliArguments otherLocationsCliArguments = (LocationsCliArguments) other;
return super.equals(other)
&& this.locations.equals(otherLocationsCliArguments.locations)
&& this.isStandaloneConfigIgnored == otherLocationsCliArguments.isStandaloneConfigIgnored;
}
}