Add primitive domains and criteria feature

This commit is contained in:
Wim Velzeboer
2021-06-24 12:15:06 +01:00
parent 5346864513
commit 910aa6e04c
39 changed files with 3308 additions and 3 deletions
+22
View File
@@ -0,0 +1,22 @@
# fflib-apex-extensions
## Primitive Domains
A huge benefit of using primitive domains, is that you write less code.
Instead of:
```apex
List<String> myStrings = getSomeStrings();
```
You can write:
```apex
Strings myStrings = getSomeString();
```
It is a small thing, but it makes things looks much nicer.
One other benefit is that you can encapsulate more logic as Lists. You can see these lists as a Domain.
Take a look at the SObjects primitive domain, it is the new source for extending domain classes.