|
|
|
|
4
|
* Created by leon on 1/25/18.
|
4
|
* Created by leon on 1/25/18.
|
5
|
*/
|
5
|
*/
|
6
|
public abstract class DuplicateDeleter<T> implements DuplicateDeleterInterface<T> {
|
6
|
public abstract class DuplicateDeleter<T> implements DuplicateDeleterInterface<T> {
|
7
|
- protected final T[] array;
|
|
|
|
|
7
|
+ protected T[] array;
|
8
|
|
8
|
|
9
|
public DuplicateDeleter(T[] intArray) {
|
9
|
public DuplicateDeleter(T[] intArray) {
|
10
|
this.array = intArray;
|
10
|
this.array = intArray;
|
|
|
|
|
12
|
|
12
|
|
13
|
abstract public T[] removeDuplicates(int maxNumberOfDuplications);
|
13
|
abstract public T[] removeDuplicates(int maxNumberOfDuplications);
|
14
|
abstract public T[] removeDuplicatesExactly(int exactNumberOfDuplications);
|
14
|
abstract public T[] removeDuplicatesExactly(int exactNumberOfDuplications);
|
15
|
-}
|
|
|
|
|
15
|
+}
|