Skip to content

Commit 3441820

Browse files
committed
readme
1 parent 7a624ce commit 3441820

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Consts framework allows keeping apex's constants in an ordered way.
66

77
```java
88
Account acc = new Account(
9-
Name = 'My Account',
9+
Name = 'My Account,
1010
Type = Consts.ACCOUNT.TYPE.PROSPECT,
1111
Rating = Consts.ACCOUNT.RATING.HOT
1212
);
@@ -24,15 +24,15 @@ System.debug(Consts.OPPORTUNITY.TYPE.EXISTING_CUSTOMER_DOWNGRADE); //'Existing C
2424
2525
## How it works?
2626
27-
All concrete classes are created as a *singleton*, so each class is initialized once during the transaction. To decrease heap size getters and setters are in use. It means that class will be *initialized on demand*, not always. e.g execution of `Consts.ACCOUNT.TYPE.PROSPECT` will create instance of `AccountConsts` only, without creating `ContactConsts`.
27+
All concrete classes are created as *singletons*, so each class is initialized once during the transaction. To decrease heap size getters and setters are in use. It means that the class will be *initialized on demand*, not always. e.g execution of `Consts.ACCOUNT.TYPE.PROSPECT` will create an instance of `AccountConsts` only, without creating `ContactConsts`.
2828
29-
Code Architecture is following *Open/Close* and *Single Responsibility Principle*. It means that code is easy to extend, and each class is responsible only for specific set of consts.
29+
Code Architecture is following *Open/Close* and *Single Responsibility Principle*. It means that code is easy to extend, and each class is responsible only for a specific set of consts.
3030
31-
## How to use?
31+
## How to use it?
3232
3333
### Create concrete consts class
3434
35-
- Create `INSTANCE` variable to keep class instance (singleton).
35+
- Create an `INSTANCE` variable to keep the class instance (singleton).
3636
- Create inner classes to order values.
3737
3838
```java

0 commit comments

Comments
 (0)