update package info and change function for LinkedList and ArrayList
This commit is contained in:
-5
@@ -1,5 +0,0 @@
|
||||
package com.baeldung.list.listoflist;
|
||||
|
||||
public interface Stationery {
|
||||
|
||||
}
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.baeldung.findanelement;
|
||||
package com.ossez.findanelement;
|
||||
|
||||
public class Customer {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.baeldung.findanelement;
|
||||
package com.ossez.findanelement;
|
||||
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.baeldung.java.list;
|
||||
package com.ossez.java.list;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Collection;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.baeldung.java.list;
|
||||
package com.ossez.java.list;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.baeldung.java_8_features;
|
||||
package com.ossez.java_8_features;
|
||||
|
||||
public class Car {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.baeldung.java_8_features;
|
||||
package com.ossez.java_8_features;
|
||||
|
||||
public class Person {
|
||||
private String name;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.baeldung.list;
|
||||
package com.ossez.list;
|
||||
|
||||
public class Flower {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.baeldung.list.listoflist;
|
||||
package com.ossez.list.listoflist;
|
||||
|
||||
public class Pen implements Stationery {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.baeldung.list.listoflist;
|
||||
package com.ossez.list.listoflist;
|
||||
|
||||
public class Pencil implements Stationery{
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.baeldung.list.listoflist;
|
||||
package com.ossez.list.listoflist;
|
||||
|
||||
public class Rubber implements Stationery {
|
||||
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
package com.ossez.list.listoflist;
|
||||
|
||||
public interface Stationery {
|
||||
|
||||
}
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.baeldung.list.removeall;
|
||||
package com.ossez.list.removeall;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Iterator;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.baeldung.collections;
|
||||
package com.ossez.collections;
|
||||
|
||||
import static org.hamcrest.Matchers.containsInAnyOrder;
|
||||
import static org.hamcrest.Matchers.containsInRelativeOrder;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.baeldung.findanelement;
|
||||
package com.ossez.findanelement;
|
||||
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.baeldung.java.list;
|
||||
package com.ossez.java.list;
|
||||
|
||||
import static org.junit.Assert.assertArrayEquals;
|
||||
import static org.junit.Assert.assertEquals;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.baeldung.java.list;
|
||||
package com.ossez.java.list;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.baeldung.java8;
|
||||
package com.ossez.java8;
|
||||
|
||||
import com.google.common.collect.Lists;
|
||||
import org.junit.Test;
|
||||
+3
-3
@@ -1,7 +1,7 @@
|
||||
package com.baeldung.java8;
|
||||
package com.ossez.java8;
|
||||
|
||||
import com.baeldung.java_8_features.Car;
|
||||
import com.baeldung.java_8_features.Person;
|
||||
import com.ossez.java_8_features.Car;
|
||||
import com.ossez.java_8_features.Person;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.baeldung.list;
|
||||
package com.ossez.list;
|
||||
|
||||
import org.junit.Assert;
|
||||
import org.junit.Before;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.baeldung.list.listoflist;
|
||||
package com.ossez.list.listoflist;
|
||||
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.baeldung.list.random;
|
||||
package com.ossez.list.random;
|
||||
|
||||
import com.google.common.collect.Lists;
|
||||
import org.junit.Test;
|
||||
+14
-14
@@ -1,18 +1,18 @@
|
||||
package com.baeldung.list.removeall;
|
||||
package com.ossez.list.removeall;
|
||||
|
||||
import static com.baeldung.list.removeall.RemoveAll.removeWithCallingRemoveUntilModifies;
|
||||
import static com.baeldung.list.removeall.RemoveAll.removeWithCollectingAndReturningRemainingElements;
|
||||
import static com.baeldung.list.removeall.RemoveAll.removeWithCollectingRemainingElementsAndAddingToOriginalList;
|
||||
import static com.baeldung.list.removeall.RemoveAll.removeWithForEachLoop;
|
||||
import static com.baeldung.list.removeall.RemoveAll.removeWithForLoopDecrementOnRemove;
|
||||
import static com.baeldung.list.removeall.RemoveAll.removeWithForLoopIncrementIfRemains;
|
||||
import static com.baeldung.list.removeall.RemoveAll.removeWithIterator;
|
||||
import static com.baeldung.list.removeall.RemoveAll.removeWithRemoveIf;
|
||||
import static com.baeldung.list.removeall.RemoveAll.removeWithStandardForLoopUsingIndex;
|
||||
import static com.baeldung.list.removeall.RemoveAll.removeWithStreamFilter;
|
||||
import static com.baeldung.list.removeall.RemoveAll.removeWithWhileLoopNonPrimitiveElement;
|
||||
import static com.baeldung.list.removeall.RemoveAll.removeWithWhileLoopPrimitiveElement;
|
||||
import static com.baeldung.list.removeall.RemoveAll.removeWithWhileLoopStoringFirstOccurrenceIndex;
|
||||
import static com.ossez.list.removeall.RemoveAll.removeWithCallingRemoveUntilModifies;
|
||||
import static com.ossez.list.removeall.RemoveAll.removeWithCollectingAndReturningRemainingElements;
|
||||
import static com.ossez.list.removeall.RemoveAll.removeWithCollectingRemainingElementsAndAddingToOriginalList;
|
||||
import static com.ossez.list.removeall.RemoveAll.removeWithForEachLoop;
|
||||
import static com.ossez.list.removeall.RemoveAll.removeWithForLoopDecrementOnRemove;
|
||||
import static com.ossez.list.removeall.RemoveAll.removeWithForLoopIncrementIfRemains;
|
||||
import static com.ossez.list.removeall.RemoveAll.removeWithIterator;
|
||||
import static com.ossez.list.removeall.RemoveAll.removeWithRemoveIf;
|
||||
import static com.ossez.list.removeall.RemoveAll.removeWithStandardForLoopUsingIndex;
|
||||
import static com.ossez.list.removeall.RemoveAll.removeWithStreamFilter;
|
||||
import static com.ossez.list.removeall.RemoveAll.removeWithWhileLoopNonPrimitiveElement;
|
||||
import static com.ossez.list.removeall.RemoveAll.removeWithWhileLoopPrimitiveElement;
|
||||
import static com.ossez.list.removeall.RemoveAll.removeWithWhileLoopStoringFirstOccurrenceIndex;
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
import static org.assertj.core.api.Assertions.assertThatThrownBy;
|
||||
|
||||
Reference in New Issue
Block a user