Add count methods to PopulatedBufferList

This commit is contained in:
Cameron Gutman 2014-11-16 12:04:43 -08:00
parent f21a81d7ac
commit c0e95ea18b

View File

@ -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();
}