uk.co.petertribble.pkgview
Class SolarisPatch
java.lang.Object
uk.co.petertribble.pkgview.SolarisPatch
public class SolarisPatch
- extends java.lang.Object
Stores details of a Solaris patch.
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SolarisPatch
public SolarisPatch(int id,
int revision)
SolarisPatch
public SolarisPatch(java.lang.String sid,
java.lang.String srevision)
addPackage
public void addPackage(SolarisPackage pkg)
getPackages
public java.util.List<SolarisPackage> getPackages()
getId
public int getId()
getRevision
public int getRevision()
setInfo
public void setInfo(java.lang.String info)
getInfo
public java.lang.String getInfo()
toString
public java.lang.String toString()
- Returns a String representation of this patch, in the form
######-##
- Overrides:
toString
in class java.lang.Object
equals
public boolean equals(java.lang.Object o)
- Returns whether the requested Object is equal to this SolarisPatch.
Equality implies that the Object is of class SolarisPatch and has
the same id and revision.
- Overrides:
equals
in class java.lang.Object
- Parameters:
o
- The object to be tested for equality.
- Returns:
- true if the object is a
SolarisPatch
with the same
id and revision as this SolarisPatch
.