com.sun.pkg.client
Class Action

java.lang.Object
  extended by com.sun.pkg.client.Action
All Implemented Interfaces:
java.lang.Comparable<Action>
Direct Known Subclasses:
AbstractFileAction, DependAction, LicenseAction, LinkAction, SetAction

public abstract class Action
extends java.lang.Object
implements java.lang.Comparable<Action>

An Action is the base class for all actions that are contained within packages.

Action is the smallest unit of operation in IPS. See the man page of pkgsend(1) for different types of actions and their semantics.

Author:
trm

Method Summary
 int compareTo(Action a)
          Used internally to sort Actions.
 boolean equals(java.lang.Object a)
          Determine if two Actions are the "same".
 int getSize()
          Return the size of the installed bits for this action.
 int hashCode()
          Implemented to be consistent with equals(Object).
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getSize

public int getSize()
Return the size of the installed bits for this action.

Returns:
the size of the action

compareTo

public int compareTo(Action a)
Used internally to sort Actions. Not intended to be used by clients.

Specified by:
compareTo in interface java.lang.Comparable<Action>

equals

public boolean equals(java.lang.Object a)
Determine if two Actions are the "same". Actions are the same if they are the same type and if the key value for the actions are the same. The actions may vary in other details.

Overrides:
equals in class java.lang.Object
Parameters:
a - the Action to be compared
Returns:
True if the actions are the same.

hashCode

public int hashCode()
Implemented to be consistent with equals(Object).

Overrides:
hashCode in class java.lang.Object