# Examples Every example below lives in `examples/` in the repository and is a runnable script (`python examples/.py`). This page embeds them directly so they can never drift out of sync with what actually runs. ## @Data ```{eval-rst} .. literalinclude:: ../examples/data_basic.py :language: python ``` ## @Getter ```{eval-rst} .. literalinclude:: ../examples/getter_basic.py :language: python ``` ## @Setter ```{eval-rst} .. literalinclude:: ../examples/setter_basic.py :language: python ``` ## @NoArgsConstructor ```{eval-rst} .. literalinclude:: ../examples/no_args_constructor_basic.py :language: python ``` ## @AllArgsConstructor ```{eval-rst} .. literalinclude:: ../examples/all_args_constructor_basic.py :language: python ``` ## @RequiredArgsConstructor ```{eval-rst} .. literalinclude:: ../examples/required_args_constructor_basic.py :language: python ``` ## @Builder / builder The three patterns below mirror the original project spec exactly (modulo a `uuid` import-casing typo fixed in the source). ```{eval-rst} .. literalinclude:: ../examples/builder_basic.py :language: python ``` ## @ToString ```{eval-rst} .. literalinclude:: ../examples/to_string_basic.py :language: python ``` ## @EqualsAndHashCode ```{eval-rst} .. literalinclude:: ../examples/equals_and_hash_code_basic.py :language: python ``` ## @Value ```{eval-rst} .. literalinclude:: ../examples/value_basic.py :language: python ``` ## Dependency injection ```{eval-rst} .. literalinclude:: ../examples/di_basic.py :language: python ```