added todos with features that could be added
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user