Changeset 4887 for trunk/gli/src/org/greenstone/gatherer/util
- Timestamp:
- 2003-07-04T14:37:18+12:00 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/util/HashMap3D.java
r4674 r4887 6 6 * University of Waikato, New Zealand. 7 7 * 8 * <BR><BR>9 *10 8 * Author: John Thompson, Greenstone Digital Library, University of Waikato 11 9 * 12 * <BR><BR>13 *14 10 * Copyright (C) 1999 New Zealand Digital Library Project 15 *16 * <BR><BR>17 11 * 18 12 * This program is free software; you can redistribute it and/or modify … … 21 15 * (at your option) any later version. 22 16 * 23 * <BR><BR>24 *25 17 * This program is distributed in the hope that it will be useful, 26 18 * but WITHOUT ANY WARRANTY; without even the implied warranty of 27 19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 28 20 * GNU General Public License for more details. 29 *30 * <BR><BR>31 21 * 32 22 * You should have received a copy of the GNU General Public License … … 35 25 *######################################################################## 36 26 */ 37 38 39 40 41 42 43 /* GPL_HEADER */44 27 package org.greenstone.gatherer.util; 45 28 /************************************************************************************** 46 * Title: Gatherer47 * Description: The Gatherer: a tool for gathering and enriching a digital collection.48 * Company: The University of Waikato49 29 * Written: 20/08/02 50 30 * Revised: 51 * @author John Thompson, 982650952 * @version 2.353 31 **************************************************************************************/ 54 32 import java.util.HashMap; 55 33 import java.util.Iterator; 56 34 import 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 */ 58 39 public class HashMap3D 59 40 extends HashMap { … … 120 101 } 121 102 else { 122 103 // Retrieve the hash mapping at key_one. 123 104 HashMap map = (HashMap) get(key_one); 124 105 // If there is such a map then retrieve the value at key_two. 125 106 if(map != null) { 126 107 result = map.get(key_two); … … 141 122 Metadata result = null; 142 123 if(metadata != null) { 143 124 // Locate the appropriate value->metadata hashmap. 144 125 String element_name = metadata.getElement().toString(); 145 126 HashMap inner_mapping = (HashMap) get(element_name);
Note:
See TracChangeset
for help on using the changeset viewer.