Package io.jenkins.updatebot.model
Class DependencyVersionChange
java.lang.Object
io.jenkins.updatebot.model.DependencyVersionChange
- Direct Known Subclasses:
MavenDependencyVersionChange
public class DependencyVersionChange extends Object
Represents the update of a dependency version with an optional scope
-
Constructor Summary
Constructors Constructor Description DependencyVersionChange(Kind kind, String dependency, String version)
DependencyVersionChange(Kind kind, String dependency, String version, String scope)
DependencyVersionChange(Kind kind, String dependency, String version, String scope, boolean add)
-
Method Summary
Modifier and Type Method Description static Map<Kind,List<DependencyVersionChange>>
byKind(List<DependencyVersionChange> list)
Returns the dependency version changes by kindstatic String
describe(List<DependencyVersionChange> changes)
boolean
equals(Object o)
static List<DependencyVersionChange>
forKind(Kind kind, List<DependencyVersionChange> list)
Returns the dependency version changes for the given kindString
getDependency()
Kind
getKind()
String
getScope()
String
getVersion()
static boolean
hasDependency(List<DependencyVersionChange> changes, DependencyVersionChange change)
int
hashCode()
boolean
isAdd()
Returns if we add this dependency if its missing from a projectboolean
matches(DependencyVersionChange that)
Returns true if the given change is for the same kind and dependencyboolean
matches(MavenArtifactKey artifactKey)
Returns true if this change matches the given artifact keyboolean
matches(String groupId, String artifactId)
Returns true if this change matches the given artifact key or if the group is the default Maven plugin group and the artifact id matches.String
toString()
-
Constructor Details
-
DependencyVersionChange
-
DependencyVersionChange
-
DependencyVersionChange
-
-
Method Details
-
describe
-
hasDependency
public static boolean hasDependency(List<DependencyVersionChange> changes, DependencyVersionChange change) -
forKind
Returns the dependency version changes for the given kind -
byKind
Returns the dependency version changes by kind -
toString
-
equals
-
hashCode
public int hashCode() -
matches
Returns true if the given change is for the same kind and dependency -
matches
Returns true if this change matches the given artifact key or if the group is the default Maven plugin group and the artifact id matches. -
matches
Returns true if this change matches the given artifact key -
getKind
-
getDependency
-
getVersion
-
getScope
-
isAdd
public boolean isAdd()Returns if we add this dependency if its missing from a project
-