org.shapelogic.calculation
Class RootMap

java.lang.Object
  extended by org.shapelogic.calculation.RootMap

public class RootMap
extends java.lang.Object

This is the RootContext where all the certain objects are stored.
There will be a lot of calculations and streams here.
Currently implemented as a kind of a singleton.
This might be changed if more contexts need to be active at the same time.
This survives between tests so reset if testing.

Author:
Sami Badawi

Constructor Summary
RootMap()
           
 
Method Summary
static void clear()
          Maybe making a new map would be better.
static boolean containsValue(java.lang.Object key)
           
static java.lang.Object get(java.lang.Object key)
           
static java.util.Map getMap()
           
static java.util.Map[] getMaps()
           
static java.util.Map mapFactory()
           
static void put(java.lang.Object key, java.lang.Object value)
           
static void putNoOverwrite(java.lang.Object key, java.lang.Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RootMap

public RootMap()
Method Detail

getMap

public static java.util.Map getMap()

mapFactory

public static java.util.Map mapFactory()

getMaps

public static java.util.Map[] getMaps()

put

public static void put(java.lang.Object key,
                       java.lang.Object value)

putNoOverwrite

public static void putNoOverwrite(java.lang.Object key,
                                  java.lang.Object value)

get

public static java.lang.Object get(java.lang.Object key)

clear

public static void clear()
Maybe making a new map would be better.


containsValue

public static boolean containsValue(java.lang.Object key)


Copyright © 2008. All Rights Reserved.