make class final
We haven't designed the class for extension.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user