From ebd0252892b659314765d09f595df6565613ccac Mon Sep 17 00:00:00 2001 From: Boris Popic Date: Sun, 13 Jul 2025 12:43:46 +0200 Subject: [PATCH] Initialize decorator-pattern module --- decorator-pattern/pom.xml | 20 +++++++++++++++++++ .../src/main/java/org/borispopic/Main.java | 17 ++++++++++++++++ pom.xml | 1 + 3 files changed, 38 insertions(+) create mode 100644 decorator-pattern/pom.xml create mode 100644 decorator-pattern/src/main/java/org/borispopic/Main.java diff --git a/decorator-pattern/pom.xml b/decorator-pattern/pom.xml new file mode 100644 index 0000000..5217d01 --- /dev/null +++ b/decorator-pattern/pom.xml @@ -0,0 +1,20 @@ + + + 4.0.0 + + org.borispopic + design-pattern + 0.0.1-SNAPSHOT + + + decorator-pattern + + + 21 + 21 + UTF-8 + + + \ No newline at end of file diff --git a/decorator-pattern/src/main/java/org/borispopic/Main.java b/decorator-pattern/src/main/java/org/borispopic/Main.java new file mode 100644 index 0000000..0380534 --- /dev/null +++ b/decorator-pattern/src/main/java/org/borispopic/Main.java @@ -0,0 +1,17 @@ +package org.borispopic; + +//TIP To Run code, press or +// click the icon in the gutter. +public class Main { + public static void main(String[] args) { + //TIP Press with your caret at the highlighted text + // to see how IntelliJ IDEA suggests fixing it. + System.out.printf("Hello and welcome!"); + + for ( int i = 1; i <= 5; i++ ) { + //TIP Press to start debugging your code. We have set one breakpoint + // for you, but you can always add more by pressing . + System.out.println("i = " + i); + } + } +} \ No newline at end of file diff --git a/pom.xml b/pom.xml index 3378d9d..4ecb520 100644 --- a/pom.xml +++ b/pom.xml @@ -12,6 +12,7 @@ factory-pattern observer-pattern abstract-factory-pattern + decorator-pattern