uk.co.petertribble.pkgview
Class SolarisPatch

java.lang.Object
  extended by uk.co.petertribble.pkgview.SolarisPatch

public class SolarisPatch
extends java.lang.Object

Stores details of a Solaris patch.


Constructor Summary
SolarisPatch(int id, int revision)
           
SolarisPatch(java.lang.String sid, java.lang.String srevision)
           
 
Method Summary
 void addPackage(SolarisPackage pkg)
           
 boolean equals(java.lang.Object o)
          Returns whether the requested Object is equal to this SolarisPatch.
 int getId()
           
 java.lang.String getInfo()
           
 java.util.List<SolarisPackage> getPackages()
           
 int getRevision()
           
 void setInfo(java.lang.String info)
           
 java.lang.String toString()
          Returns a String representation of this patch, in the form ######-##
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SolarisPatch

public SolarisPatch(int id,
                    int revision)

SolarisPatch

public SolarisPatch(java.lang.String sid,
                    java.lang.String srevision)
Method Detail

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.