From 4da072618525a922e19b63cbc0f7e1af7c18bd2e Mon Sep 17 00:00:00 2001 From: Andreas Huber Date: Tue, 26 Sep 2017 20:22:52 +0200 Subject: [PATCH] added todos with features that could be added --- .../java/org/lucares/collections/IntList.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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); }