Wednesday 8 January 2014

Pack and unpack Methods



Pack
this method is a standard method inherited from RunBase. It is used to save
the values that the user selects and store them until the next time the user executes
the class.
Public container pack ()
{
return [#CurrentVersion, #CurrentList];
}

unpack
Standard method inherited from RunBase and used to fetch the values that the user
selected the previous time he executed the class.
public boolean unpack(container packed Class)
{
Version version = RunBase::getVersion(packedClass);
;
switch (version)
{
case #CurrentVersion:
[version, #CurrentList] = packedClass;
break;
default:
return false;
}
return true;
}

1 comment:

  1. 1xbet - Best Bet in 1xBet - Download or Install for Android
    1xbet is the best betting https://jancasino.com/review/merit-casino/ app in the world created for esports. It is septcasino a one 1xbet korean of the safest jancasino and worrione.com most trusted names among players. It offers a user friendly interface

    ReplyDelete