Questions tagged [type]

The Type Class contains methods for getting the Apex type that corresponds to an Apex class and for instantiating new types.

Filter by
Sorted by
Tagged with
3
votes
1answer
67 views

Quote.class doesn't return the Quote type, but Account.class does. Why?

I'm trying a library that acts like an object factory. It works with serialization, so it is possible to specify formula fields without DML, which is pretty handy with tests. My issue is that I'm ...
0
votes
3answers
368 views

Use Type class to call parameterized constructor

Using this to get below working: public class t12345 implements Database.Batchable<sObject> { String query; Boolean xyz; public t12345(String query){ ...