public class DefaultDependency extends java.lang.Object implements Dependency
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
code |
protected java.lang.String |
op |
protected java.lang.String |
type |
protected Version |
version |
CONFLICT, RECOMMENDED, REQUIRED
Constructor and Description |
---|
DefaultDependency() |
DefaultDependency(PackageInfo packageInfo) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
java.lang.Object |
clone()
Creates a copy of the object.
|
boolean |
equals(java.lang.Object obj) |
void |
fromPackageInfo(PackageInfo packageInfo) |
java.lang.String |
getCode() |
java.lang.String |
getOp() |
java.lang.String |
getType() |
Version |
getVersion() |
int |
hashCode() |
boolean |
match(java.lang.String type,
java.lang.String code,
Version version) |
boolean |
match(java.lang.String type,
StringWithAlias code,
Version version) |
Dependency |
parse(java.lang.String dependency) |
java.lang.String |
toString() |
finalize, getClass, notify, notifyAll, wait, wait, wait
cloneQuietly, cloneQuietly
protected java.lang.String type
protected java.lang.String code
protected java.lang.String op
protected Version version
public DefaultDependency()
public DefaultDependency(PackageInfo packageInfo)
public void fromPackageInfo(PackageInfo packageInfo)
public void clear()
public Dependency parse(java.lang.String dependency)
parse
in interface Dependency
public java.lang.String getType()
getType
in interface Dependency
public java.lang.String getCode()
getCode
in interface Dependency
public java.lang.String getOp()
getOp
in interface Dependency
public Version getVersion()
getVersion
in interface Dependency
public boolean match(java.lang.String type, java.lang.String code, Version version)
match
in interface Dependency
public boolean match(java.lang.String type, StringWithAlias code, Version version)
match
in interface Dependency
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
Cloneable
clone
in class java.lang.Object
java.lang.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()}.
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object