MCPcopy Create free account
hub / github.com/dhale/jtk / ensureCapacity

Method ensureCapacity

core/src/main/java/edu/mines/jtk/util/ArrayQueue.java:152–156  ·  view source on GitHub ↗

Ensures that the capacity of the queue is not less than the specified value. The capacity is the number of entries that the queue can hold without increasing the length of the array used to implement the queue. This method may be used to reduce the cost of adding a large number of entries to the

(int capacity)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

resizeMethod · 0.95

Tested by

no test coverage detected