I use value objects to encapsulate validations like maxLength. This is an extract of a sample class without factory method and validation: public class CallingN
ibm-mq
device-detection
nested-table
react-player
use-strict
hibernate-criteria
value-type
cakephp-2.3
vmware-workstation
http-status-code-407
delta-lake
ocg
sizeof
gtk.jl
marshmallow-dataclass
ini
extend
nvl
laravel-backpack
ocrspace-ocr-api
multiple-terms
tokio-postgres
arduino-uno-wifi
radosgw
actionmailer
intellij-idea-2020
dymola
react-native-svg-charts
minimalmodbus
pypng