Renamed package and added md file

This commit is contained in:
Cesare
2022-10-19 12:46:17 +02:00
parent 44fb57fe2b
commit 42c6f97cbd
8 changed files with 18 additions and 11 deletions

View File

@@ -0,0 +1,7 @@
## Java Shallow Copy Vs Deep Copy
This module contains articles about the differences between shallow copy and deep copy in Java.
### Relevant articles
- [Creating a Deep vs Shallow Copy Of An Object in Java](https://drafts.baeldung.com/deep-shallow-copy-java/)

View File

@@ -1,4 +1,4 @@
package com.baeldung.java_shallow_deep_copy; package com.baeldung;
/** /**
* Hello world! * Hello world!

View File

@@ -1,4 +1,4 @@
package com.baeldung.java_shallow_deep_copy.data; package com.baeldung.data;
public class Balance implements Cloneable { public class Balance implements Cloneable {

View File

@@ -1,4 +1,4 @@
package com.baeldung.java_shallow_deep_copy.data; package com.baeldung.data;
public class BankAccount implements Cloneable { public class BankAccount implements Cloneable {

View File

@@ -1,4 +1,4 @@
package com.baeldung.java_shallow_deep_copy.data; package com.baeldung.data;
public class BankAccountDeep extends BankAccount { public class BankAccountDeep extends BankAccount {

View File

@@ -1,4 +1,4 @@
package com.baeldung.java_shallow_deep_copy.data; package com.baeldung.data;
public class BankAccountShallow extends BankAccount { public class BankAccountShallow extends BankAccount {

View File

@@ -1,11 +1,11 @@
package com.baeldung.java_shallow_deep_copy.unit; package com.baeldung.unit;
import static org.junit.jupiter.api.Assertions.assertNotEquals; import static org.junit.jupiter.api.Assertions.assertNotEquals;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import com.baeldung.java_shallow_deep_copy.data.Balance; import com.baeldung.data.Balance;
import com.baeldung.java_shallow_deep_copy.data.BankAccountDeep; import com.baeldung.data.BankAccountDeep;
public class DeepCopyTest { public class DeepCopyTest {

View File

@@ -1,12 +1,12 @@
package com.baeldung.java_shallow_deep_copy.unit; package com.baeldung.unit;
import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotEquals; import static org.junit.jupiter.api.Assertions.assertNotEquals;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import com.baeldung.java_shallow_deep_copy.data.Balance; import com.baeldung.data.Balance;
import com.baeldung.java_shallow_deep_copy.data.BankAccountShallow; import com.baeldung.data.BankAccountShallow;
public class ShallowCopyTest { public class ShallowCopyTest {