Adds a constructor for accepting timestamp for MavenCoordinate class.
@@ -27,6 +27,7 @@ public class MavenCoordinate {
String groupID;
String artifactID;
String versionConstraint;
+ String timestamp;
public MavenCoordinate(String groupID, String artifactID, String version) {
this.groupID = groupID;
@@ -34,6 +35,13 @@ public class MavenCoordinate {
this.versionConstraint = version;
}
+ public MavenCoordinate(String groupID, String artifactID, String version, String timestamp) {
+ this.groupID = groupID;
+ this.artifactID = artifactID;
+ this.versionConstraint = version;
+ this.timestamp = timestamp;
+ }
+
public static MavenCoordinate fromString(String coords) {
var coord = coords.split(":");
return new MavenCoordinate(coord[0], coord[1], coord[2]);
