jerklib.events.modes
Class ModeAdjustment

java.lang.Object
  extended by jerklib.events.modes.ModeAdjustment

public class ModeAdjustment
extends Object

A Class to represent a mode adjustment to a user or a channel.

Author:
mohadib

Nested Class Summary
static class ModeAdjustment.Action
          Enum of mode action types.
 
Constructor Summary
ModeAdjustment(ModeAdjustment.Action action, char mode, String argument)
           
 
Method Summary
 ModeAdjustment.Action getAction()
          Indicates if the mode is being applied or removed
 String getArgument()
          This will return the argument for this mode if any.
 char getMode()
          Get the mode for this adjustment
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ModeAdjustment

public ModeAdjustment(ModeAdjustment.Action action,
                      char mode,
                      String argument)
Method Detail

getAction

public ModeAdjustment.Action getAction()
Indicates if the mode is being applied or removed

Returns:
PLUS if applying MINUS if removing

getMode

public char getMode()
Get the mode for this adjustment

Returns:
the mode

getArgument

public String getArgument()
This will return the argument for this mode if any.

Returns:
the argument for the mode or an empty string is no argument

toString

public String toString()
Overrides:
toString in class Object