Lines Matching full:objects
6 * A light pool of objects that can be resused to avoid allocation.
10 private final ArrayList<T> objects;
16 this.objects = new ArrayList<T>(initCapacity);
23 obj = objects.isEmpty() ? create() : objects.remove(0);
33 if (!objects.contains(obj)) {
35 objects.add(obj);
40 objects.clear();
44 return objects.size();
48 objects.ensureCapacity(minCapacity);