Can I create an
Apex.Stack for any type?
If I will do:
Apex.Stack stackForIds = new Apex.Stack();
Then I am able to put id values in such a stack:
Here is how I tried to put an
SObject into my stack:
Apex.Stack<SObject> stackForSObjects= new Apex.Stack<SObject>(); stackForSObjects.push(new SObject(Id = anId));
And it did not work out. I am getting an error:
Cannot resolve symbol
There seems to be no documentation on the
Apex.Stack, so I would be grateful for it. Otherwise I am asking for help to figure out whether or not
Apex.Stack is able to work with an arbitrary type.