diff --git a/primitiveCollections/src/main/java/org/lucares/collections/IntList.java b/primitiveCollections/src/main/java/org/lucares/collections/IntList.java index 2353816..731997b 100644 --- a/primitiveCollections/src/main/java/org/lucares/collections/IntList.java +++ b/primitiveCollections/src/main/java/org/lucares/collections/IntList.java @@ -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); }