public class DefaultDependency extends Object implements Dependency
CONFLICT, RECOMMENDED, REQUIRED
Constructor and Description |
---|
DefaultDependency() |
DefaultDependency(PackageInfo packageInfo) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
Object |
clone()
Creates a copy of the object.
|
boolean |
equals(Object obj) |
String |
getCode() |
String |
getOp() |
String |
getType() |
Version |
getVersion() |
int |
hashCode() |
boolean |
match(String type,
String code,
Version version) |
boolean |
match(String type,
StringWithAlias code,
Version version) |
Dependency |
parse(String dependency) |
String |
toString() |
public DefaultDependency()
public DefaultDependency(PackageInfo packageInfo)
public void clear()
public Dependency parse(String dependency)
parse
in interface Dependency
public String getType()
getType
in interface Dependency
public String getCode()
getCode
in interface Dependency
public String getOp()
getOp
in interface Dependency
public Version getVersion()
getVersion
in interface Dependency
public boolean match(String type, String code, Version version)
match
in interface Dependency
public boolean match(String type, StringWithAlias code, Version version)
match
in interface Dependency
public Object clone() throws CloneNotSupportedException
Cloneable
clone
in class Object
CloneNotSupportedException
- if the instance of the object cannot
be cloned. As this is extending Cloneable
so
its sure it implements it, so this exception may be used for problems
on specific object instances.Object#clone()}.