/guava/android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java
int initialSize =((java.util.Collection<?>)(initialContents)).size(); result = java.lang.Math.max(result, initialSize);
if ( initialContents instanceof Collection ) { int initialSize = ( ( Collection<?> ) initialContents ) .size ( ) ; result = Math.max ( result, initialSize ) ; }
static int initialQueueSize( int configuredExpectedSize, int maximumSize, Iterable<?> initialContents) { int result = (configuredExpectedSize == Builder.UNSET_EXPECTED_SIZE) ? DEFAULT_CAPACITY : configuredExpectedSize; <extra_id_0> return capAtMaximumSize(result, maximumSize); } private void growIfNeeded() { if (size > queue.length) { int newCapacity = calculateNewCapacity(); Object[] newQueue = new Object[newCapacity];