Questions tagged [interface]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
19
votes
1answer
1k views

Abstract, Interface, Classes OH MY - Question on Approach

So I believe that I have a real world use case for an object model that uses abstract classes and interface. I do however have a few questions about the best way to go about it: Interface public ...
9
votes
2answers
1k views

Parameterized Interfaces - what are they?

This is purely for academic purpose to understand how interfaces work I found many examples where you pass something while implementing an interface global class CustomIterable implements ...
1
vote
2answers
390 views

Does Database.SaveResult, Database.DeleteResult, etc. implement a public interface?

The various DML operations (insert, update, delete, etc.) all return results with very similar methods and properties. It is not uncommon, as a developer, that I should want to handle these results ...
6
votes
1answer
234 views

Doesn't Set<T> collection implement Iterable<T> interface? [duplicate]

I am trying to join String elements of Set with semicolon. Set<String> elements = new Set<String>{ 'foo', 'bar' }; System.debug(String.join(elements, ';')); getting the ...
4
votes
2answers
291 views

What are the risks or drawbacks of creating Parameterized Interfaces using of the Apex API version 25?

Unfortunately, as of API version 26, SFDC removed parameterized interfaces. However, it is relatively easy to create new interfaces and set the version as 25. So, to take the example from ...
4
votes
2answers
540 views

Cannot deserialize JSON as abstract type?

While writing a class to help me manage @future jobs for a project, I stumbled onto an error message I can find very little help on. Cannot deserialize JSON as abstract type I used an interface ...
4
votes
1answer
253 views

What are the pitfalls around Apex Interfaces in managed packages

I would like to add an interface to one of our managed packages. This interfaces would be implemented by custom code in a customer org where the package is installed. It would be called from a custom ...