WeakValueHashMap changes for revisions 26172:26173

Those two new constructors will be excluded in the port to Apache SIS.

Command line:

svn diff --extensions "--unified --ignore-space-change --ignore-all-space --ignore-eol-style" -r26172:26173 https://svn.osgeo.org/geotools/trunk/modules/library/metadata/src/main/java/org/geotools/util/WeakValueHashMap.java
Revision 26172Revision 26173
}

/**
 * Invoked by {@link Entry} when an element has been collected
 * by the garbage collector. This method will remove the weak reference
 * from {@link #table}.
}

/**
 * Create a {@link WeakValueHashMap} of the requested size.
 * @param initialSize
 */
public WeakValueHashMap( int initialSize ){
    table = new Entry[initialSize];
    threshold = Math.round(table.length*LOAD_FACTOR);
    lastRehashTime = System.currentTimeMillis();
}

/**
 * Create a new WeakValueHashMap populated with the contents of the provied map.
 *
 * @param map Initial contents of the WeakValueHashMap
 */
public WeakValueHashMap( Map map ){
    this();
    putAll( map );
}

/**
 * Invoked by {@link Entry} when an element has been collected
 * by the garbage collector. This method will remove the weak reference
 * from {@link #table}.