You need to sign in to do that
Don't have an account?
srikanth admin 24
what is Next and HasNext and its difference?
what is Next and HasNext and its difference?
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
hasNext() will return true it iteration has more values and next() returns the next element in iteration
The above code just grabs a single instance of your Iterator object and allows you to process the values.
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_methods_system_list.htm#apex_System_List_iterator
Plese let me know if it helps you.
Best Regards,
-Vivek