public class DefaultDependency extends Object implements Dependency
| Modifier and Type | Field and Description |
|---|---|
protected String |
code |
protected String |
op |
protected String |
type |
protected Version |
version |
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) |
void |
fromPackageInfo(PackageInfo packageInfo) |
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() |
protected String type
protected String code
protected String op
protected Version version
public DefaultDependency()
public DefaultDependency(PackageInfo packageInfo)
public void fromPackageInfo(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()}.