elk-util-parent/elk-util-collections/src/main/java/org/semanticweb/elk/util/collections/entryset/EntryCollection.java
void resize(int newCapacity) {
		E[] oldTable = buckets;
		int oldCapacity = oldTable.length;
		if (oldCapacity == MAXIMUM_CAPACITY) {
			oversize = Integer.MAX_VALUE;
			oversize = (int) (newCapacity * overloadFactor);
			return;
		}

		@SuppressWarnings("unchecked")
		E[] newTable = (E[]) new Entry[newCapacity];
		transfer(newTable);
		buckets = newTable;
		undersize = (int) (newCapacity * underloadFactor);
		oversize = (int) (newCapacity * overloadFactor);
	}
void resize(int newCapacity) {
		E[] oldTable = buckets;
		int oldCapacity = oldTable.length;
		if (oldCapacity == MAXIMUM_CAPACITY) {
			oversize = Integer.MAX_VALUE;
			oversize = (int) (newCapacity * overloadFactor);
			return;
		}

		@SuppressWarnings("unchecked")
		E[] newTable = (E[]) new Entry[newCapacity];
		transfer(newTable);
		buckets = newTable;
		undersize = (int) (newCapacity * underloadFactor);
		oversize = (int) (newCapacity * overloadFactor);
	}
void resize ( int newCapacity ) { E [ ] oldTable = buckets ; int oldCapacity = oldTable . length ; if ( oldCapacity == MAXIMUM_CAPACITY ) { oversize = Integer . MAX_VALUE ; oversize = ( int ) ( newCapacity * overloadFactor ) ; return ; } @ SuppressWarnings ( "unchecked" ) E [ ] newTable = ( E [ ] ) new Entry [ newCapacity ] ; transfer ( newTable ) ; buckets = newTable ; undersize = ( int ) ( newCapacity * underloadFactor ) ; oversize = ( int ) ( newCapacity * overloadFactor ) ; }
Rehashes the contents of this map into a new array with a new capacity.
This method is called automatically when the number of entries in this
set becomes below the {@link #undersize} or above the {@link #oversize}.

If current capacity is MAXIMUM_CAPACITY, this method does not resize the
map, but sets threshold to Integer.MAX_VALUE. This has the effect of
preventing future calls.

@param newCapacity
the new capacity, MUST be a power of two
Rehashes the contents of this map into a new array with a new capacity . This method is called automatically when the number of entries in this set becomes below the { @link #undersize } or above the { @link #oversize } .