01: package com.sun.istack;
02:
03: import java.util.ArrayList;
04: import java.util.Collection;
05:
06: /**
07: * {@link ArrayList} with the final keyword.
08: *
09: * <p>
10: * This gives HotSpot a better hint that all methods can be inlined.
11: *
12: * @author Kohsuke Kawaguchi
13: */
14: public final class FinalArrayList<T> extends ArrayList<T> {
15: public FinalArrayList(int initialCapacity) {
16: super (initialCapacity);
17: }
18:
19: public FinalArrayList() {
20: }
21:
22: public FinalArrayList(Collection<? extends T> ts) {
23: super(ts);
24: }
25: }
|