jigcell.compare.data
Class ResultSetGroupMap

java.lang.Object
  extended by jigcell.compare.data.ResultSetGroupMap
All Implemented Interfaces:
IResultSetGroupMap

public class ResultSetGroupMap
extends java.lang.Object
implements IResultSetGroupMap

Manages a map of result sets.

This code is licensed under the DARPA BioCOMP Open Source License. See LICENSE for more details.

Author:
Nicholas Allen

Nested Class Summary
protected static class ResultSetGroupMap.ResultSetGroupMapDelegate
          Persists the mapping by using a series of put statements.
 
Field Summary
protected  java.util.Map map
          Internal Map[IResultSetMap,String] implementation
 
Constructor Summary
ResultSetGroupMap()
          Creates a new map between result sets and names.
ResultSetGroupMap(int size, float load)
          Creates a new map between result sets and names.
 
Method Summary
 java.util.Map asMap()
          This map of result sets as an untyped map.
 java.lang.Object clone()
           
static IResultSetGroupMap createMap(java.lang.Object map)
          Creates a map of result sets.
 java.lang.String get(IResultSetMap results)
          The name associated with a particular result set or null if there is no such mapping.
 java.util.Iterator iterator()
          An iterator over the entries of this map.
 java.util.Set keySet()
          All of the keys in this map.
 java.lang.String put(IResultSetMap results, java.lang.String name)
          Adds a mapping between a result set and a name.
 void putAll(java.util.Map map)
          Adds all the entries from the map to this map.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

map

protected java.util.Map map
Internal Map[IResultSetMap,String] implementation

Constructor Detail

ResultSetGroupMap

public ResultSetGroupMap()
Creates a new map between result sets and names.


ResultSetGroupMap

public ResultSetGroupMap(int size,
                         float load)
Creates a new map between result sets and names.

Parameters:
size - Initial size
load - Load factor
Method Detail

createMap

public static IResultSetGroupMap createMap(java.lang.Object map)
Creates a map of result sets.

Parameters:
map - Map

asMap

public java.util.Map asMap()
This map of result sets as an untyped map.

Specified by:
asMap in interface IResultSetGroupMap

clone

public java.lang.Object clone()
Specified by:
clone in interface IResultSetGroupMap
Overrides:
clone in class java.lang.Object

get

public java.lang.String get(IResultSetMap results)
The name associated with a particular result set or null if there is no such mapping.

Specified by:
get in interface IResultSetGroupMap
Parameters:
results - Result set

iterator

public java.util.Iterator iterator()
An iterator over the entries of this map.

Specified by:
iterator in interface IResultSetGroupMap

keySet

public java.util.Set keySet()
All of the keys in this map.

Specified by:
keySet in interface IResultSetGroupMap

put

public java.lang.String put(IResultSetMap results,
                            java.lang.String name)
Adds a mapping between a result set and a name.

Specified by:
put in interface IResultSetGroupMap
Parameters:
results - Result set
name - Name

putAll

public void putAll(java.util.Map map)
Adds all the entries from the map to this map.

Specified by:
putAll in interface IResultSetGroupMap
Parameters:
map - Map