coins.sym
Class FlagBoxImpl

java.lang.Object
  extended bycoins.sym.FlagBoxImpl
All Implemented Interfaces:
FlagBox

public class FlagBoxImpl
extends java.lang.Object
implements FlagBox


Constructor Summary
FlagBoxImpl()
           
 
Method Summary
 boolean allFalse()
          allFalse true if all flags are false, flase if some flag is true;
 boolean getFlag(int pFlagNumber)
          getFlag getFlag returns the value (true/false) of the flag indicated by pFlagNumber.
 void setFlag(int pFlagNumber, boolean pYesNo)
          setFlag setFlag sets the flag of specified number.
 java.lang.String toString()
          toString Get all true flags by giving their flag number.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FlagBoxImpl

public FlagBoxImpl()
Method Detail

getFlag

public boolean getFlag(int pFlagNumber)
getFlag getFlag returns the value (true/false) of the flag indicated by pFlagNumber.

Specified by:
getFlag in interface FlagBox
Parameters:
pFlagNumber - flag identification number.
Returns:
boolean which indicates pFlagNumber's flag.

setFlag

public void setFlag(int pFlagNumber,
                    boolean pYesNo)
setFlag setFlag sets the flag of specified number.

Specified by:
setFlag in interface FlagBox
Parameters:
pFlagNumber - flag identification number.
pYesNo - true or false to be set to the flag.

allFalse

public boolean allFalse()
Description copied from interface: FlagBox
allFalse true if all flags are false, flase if some flag is true;

Specified by:
allFalse in interface FlagBox

toString

public java.lang.String toString()
Description copied from interface: FlagBox
toString Get all true flags by giving their flag number.

Specified by:
toString in interface FlagBox