Skip to content

Commit 4b49408

Browse files
committed
Add VO to readme
#28
1 parent ce7624f commit 4b49408

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ A collection of Value Objects to save time by generalizing types and format vali
2525
* [Nullable Uuid4](#nullable-uuid4)
2626
* [Date value-objects](#date-value-objects)
2727
* [ISO Date](#iso-date)
28+
* [Data Structures value-objects](#data-structures-value-objects)
29+
* [ArrayList](#arraylist)
2830
* [Security value-objects](#security-value-objects)
2931
* [CVE](#cve)
3032
* [Nullable CVE](#nullable-cve)
@@ -175,6 +177,21 @@ my_date = IsoDate('2023-08-15T04:55:12.076Z')
175177
my_date.value() # returns -> '2023-08-15T04:55:12.076Z'
176178
```
177179

180+
## Data structures value-objects
181+
182+
### ArrayList
183+
184+
```python
185+
from pyvalueobjects import ArrayList
186+
from pyvalueobjects import Int
187+
188+
# Creation
189+
my_int_array = ArrayList(Int)([39])
190+
191+
# Getting raw value
192+
my_int_array.value() # returns -> [39]
193+
```
194+
178195
## Security value-objects
179196

180197
### CVE

0 commit comments

Comments
 (0)