Add count methods to PopulatedBufferList

This commit is contained in:
Cameron Gutman committed 2014-11-16 12:04:43 -08:00
1 parent f21a81d7ac
commit c0e95ea18b
1 file changed
+8
@@ -20,6 +20,14 @@ public class PopulatedBufferList<T> {
}
}
public int getPopulatedCount() {
return populatedList.size();
}
public int getFreeCount() {
return freeList.size();
}
public T pollFreeObject() {
return freeList.poll();
}