added todos with features that could be added

This commit is contained in:
2017-09-26 20:22:52 +02:00
parent d00ab6533d
commit 4da0726185

View File

@@ -11,6 +11,22 @@ import java.util.List;
*/
public class IntList {
// TODO make Serializable
// TODO make Cloneable
// TODO support Iterator
// TODO add mod counts
// TODO support sublists
// TODO support Stream-API
// TODO add retainAll
// TODO add removeAll
// TODO add removeIf
// TODO add removeRange
// TODO add replace
// TODO add lastIndexOf
// TODO add indexOf
// TODO add toArray(int[] a)
// TODO remove bounds checks that are handled by java, e.g. negative indices
private static final int DEFAULT_CAPACITY = 10;
/**
@@ -96,6 +112,8 @@ public class IntList {
* the value to add
*/
public void add(final int value) {
// TODO add a special implementation that does not
// need to allocate an array for the varargs of addAll
addAll(value);
}