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 Dependencypublic String getType()
getType in interface Dependencypublic String getCode()
getCode in interface Dependencypublic String getOp()
getOp in interface Dependencypublic Version getVersion()
getVersion in interface Dependencypublic boolean match(String type, String code, Version version)
match in interface Dependencypublic boolean match(String type, StringWithAlias code, Version version)
match in interface Dependencypublic Object clone() throws CloneNotSupportedException
Cloneableclone in class ObjectCloneNotSupportedException - 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()}.