make class final

We haven't designed the class for extension.
This commit is contained in:
2017-09-29 18:59:02 +02:00
parent e7d88babb4
commit 56779368b8

View File

@@ -13,7 +13,7 @@ import java.util.stream.StreamSupport;
* This class does not (yet) implements all methods a java.util {@link List}
* would have.
*/
public class IntList implements Serializable, Cloneable {
public final class IntList implements Serializable, Cloneable {
// TODO support Iterator
// TODO add mod counts
@@ -29,7 +29,7 @@ public class IntList implements Serializable, Cloneable {
// TODO remove bounds checks that are handled by java, e.g. negative indices
// TODO toString
private static final long serialVersionUID = -6823520157007564746L;
private static final long serialVersionUID = 2622570032686034909L;
private static final int DEFAULT_CAPACITY = 10;