Ignore:
Timestamp:
2003-07-04T14:37:18+12:00 (21 years ago)
Author:
jmt12
Message:

Prittied up.

File:
1 edited

Legend:

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

    r4674 r4887  
    66 * University of Waikato, New Zealand.
    77 *
    8  * <BR><BR>
    9  *
    108 * Author: John Thompson, Greenstone Digital Library, University of Waikato
    119 *
    12  * <BR><BR>
    13  *
    1410 * Copyright (C) 1999 New Zealand Digital Library Project
    15  *
    16  * <BR><BR>
    1711 *
    1812 * This program is free software; you can redistribute it and/or modify
     
    2115 * (at your option) any later version.
    2216 *
    23  * <BR><BR>
    24  *
    2517 * This program is distributed in the hope that it will be useful,
    2618 * but WITHOUT ANY WARRANTY; without even the implied warranty of
    2719 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    2820 * GNU General Public License for more details.
    29  *
    30  * <BR><BR>
    3121 *
    3222 * You should have received a copy of the GNU General Public License
     
    3525 *########################################################################
    3626 */
    37 
    38  
    39 
    40 
    41 
    42 
    43 /* GPL_HEADER */
    4427package org.greenstone.gatherer.util;
    4528/**************************************************************************************
    46  * Title:        Gatherer
    47  * Description:  The Gatherer: a tool for gathering and enriching a digital collection.
    48  * Company:      The University of Waikato
    4929 * Written:      20/08/02
    5030 * Revised:     
    51  * @author John Thompson, 9826509
    52  * @version 2.3
    5331 **************************************************************************************/
    5432import java.util.HashMap;
    5533import java.util.Iterator;
    5634import org.greenstone.gatherer.msm.Metadata;
    57 /** Provides a HashMap implementation that indexes by two keys. Perfect for the storage of metadata references based on their metadata element and assigned value. */
     35/** Provides a HashMap implementation that indexes by two keys. Perfect for the storage of metadata references based on their metadata element and assigned value.
     36 * @author John Thompson, Greenstone Digital Library, University of Waikato
     37 * @version 2.3
     38 */
    5839public class HashMap3D
    5940    extends HashMap {
     
    120101    }
    121102    else {
    122                 // Retrieve the hash mapping at key_one.
     103        // Retrieve the hash mapping at key_one.
    123104        HashMap map = (HashMap) get(key_one);
    124                 // If there is such a map then retrieve the value at key_two.
     105        // If there is such a map then retrieve the value at key_two.
    125106        if(map != null) {
    126107        result = map.get(key_two);
     
    141122    Metadata result = null;
    142123    if(metadata != null) {
    143                 // Locate the appropriate value->metadata hashmap.
     124        // Locate the appropriate value->metadata hashmap.
    144125        String element_name = metadata.getElement().toString();
    145126        HashMap inner_mapping = (HashMap) get(element_name);
Note: See TracChangeset for help on using the changeset viewer.