org.shapelogic.calculation
Class RootMap

java.lang.Object
  extended by org.shapelogic.calculation.RootMap
All Implemented Interfaces:
RecursiveContext

public class RootMap
extends java.lang.Object
implements RecursiveContext

This is the RootContext where all the certain objects are stored.
There will be a lot of calculations and streams here.
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

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)
           
 java.util.Map getContext()
           
static RootMap getInstance()
           
 RecursiveContext getParentContext()
           
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
 

Method Detail

getInstance

public static RootMap getInstance()

mapFactory

public static java.util.Map mapFactory()

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)

getContext

public java.util.Map getContext()
Specified by:
getContext in interface RecursiveContext

getParentContext

public RecursiveContext getParentContext()
Specified by:
getParentContext in interface RecursiveContext


Copyright © 2009. All Rights Reserved.