Changeset 5369


Ignore:
Timestamp:
2003-08-29T16:25:54+12:00 (21 years ago)
Author:
jmt12
Message:

Now it remembers its size

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/util/HashMap3D.java

    r5305 r5369  
    4242    private int capacity = 4;
    4343
     44    private int size = 0;
     45
    4446    private Object last_key_one = null;
    4547    private Object last_key_two = null;
     
    6062    /** Completely remove the contents of this HashMap and its child HashMaps. */
    6163    public void clear() {
     64    size = 0;
    6265    Iterator iterator = values().iterator();
    6366    while(iterator.hasNext()) {
     
    156159    // Now add the value to this mapping.
    157160    map.put(key_two, value);
     161    size++;
    158162    }
    159163}
Note: See TracChangeset for help on using the changeset viewer.