Skip to content

Commit 3a34e56

Browse files
committed
Updated .gitignore
1 parent ae0cf3e commit 3a34e56

File tree

21 files changed

+74
-1679
lines changed

21 files changed

+74
-1679
lines changed

.gitignore

Lines changed: 45 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

2-
# Created by https://www.gitignore.io/api/intellij
3-
# Edit at https://www.gitignore.io/?templates=intellij
2+
# Created by https://www.gitignore.io/api/sbt,java,intellij
3+
# Edit at https://www.gitignore.io/?templates=sbt,java,intellij
44

55
### Intellij ###
66
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
@@ -90,4 +90,46 @@ fabric.properties
9090
.idea/**/markdown-navigator.xml
9191
.idea/**/markdown-navigator/
9292

93-
# End of https://www.gitignore.io/api/intellij
93+
### Java ###
94+
# Compiled class file
95+
*.class
96+
97+
# Log file
98+
*.log
99+
100+
# BlueJ files
101+
*.ctxt
102+
103+
# Mobile Tools for Java (J2ME)
104+
.mtj.tmp/
105+
106+
# Package Files #
107+
*.jar
108+
*.war
109+
*.nar
110+
*.ear
111+
*.zip
112+
*.tar.gz
113+
*.rar
114+
115+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
116+
hs_err_pid*
117+
118+
### SBT ###
119+
# Simple Build Tool
120+
# http://www.scala-sbt.org/release/docs/Getting-Started/Directories.html#configuring-version-control
121+
122+
dist/*
123+
target/
124+
lib_managed/
125+
src_managed/
126+
project/boot/
127+
project/plugins/project/
128+
.history
129+
.cache
130+
.lib/
131+
132+
# End of https://www.gitignore.io/api/sbt,java,intellij
133+
134+
outputs/
135+
.idea

build.sbt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,14 @@ libraryDependencies += "org.junit.jupiter" % "junit-jupiter-api" % "5.6.0" % Tes
88

99
// https://mvnrepository.com/artifact/com.squareup/javapoet
1010
libraryDependencies += "com.squareup" % "javapoet" % "1.12.1"
11+
12+
// https://mvnrepository.com/artifact/ch.qos.logback/logback-classic
13+
libraryDependencies += "ch.qos.logback" % "logback-classic" % "1.3.0-alpha5" % Test
14+
15+
// https://mvnrepository.com/artifact/org.slf4j/slf4j-api
16+
libraryDependencies += "org.slf4j" % "slf4j-api" % "2.0.0-alpha1"
17+
18+
// https://mvnrepository.com/artifact/com.typesafe/config
19+
libraryDependencies += "com.typesafe" % "config" % "1.4.0"
20+
21+
Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
package com.CreationalDP.prototype;
22

3-
public class Client {
3+
/**
4+
* Creates a new object by asking a Prototype to clone itself
5+
*/
6+
public class Client extends Prototype {
47
private Prototype prototype;
58

69
public Client(Prototype prototype) {
710
this.prototype = prototype;
811
}
912

10-
public static void main(String[] args) {
11-
Prototype prototype = new Prototype;
12-
Prototype prototypeCopy = prototype.copyMe();
13+
public Prototype operation() throws CloneNotSupportedException {
14+
return prototype.copyMe();
1315
}
1416
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
package com.CreationalDP.prototype;
22

3+
/**
4+
* Declares interface to copy it self.
5+
*/
36
public abstract class Prototype implements Cloneable {
7+
/**
8+
* Copy method.
9+
* @return copy of the object
10+
* @throws CloneNotSupportedException exception
11+
*/
412
abstract Prototype copyMe() throws CloneNotSupportedException;
513
}

outputs/com/CreationalDP/prototype/concretePrototype.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
package com.CreationalDP.prototype;
22

3-
public class concretePrototype extends Prototype {
3+
/**
4+
* Declares interface to copy it self.
5+
*/
6+
public class ConcretePrototype extends Prototype {
47
public Prototype copyMe() throws CloneNotSupportedException {
58
return (Prototype) this.clone();
69
}

src/main/java/com/behavioral/chainOfResponsibility/chainOfResponsibility.java

Lines changed: 0 additions & 94 deletions
This file was deleted.

src/main/java/com/behavioral/command/command.java

Lines changed: 0 additions & 109 deletions
This file was deleted.

0 commit comments

Comments
 (0)