com.fg.ftreenodes
Class MapParams

java.lang.Object
  extended byjava.util.AbstractMap
      extended byjava.util.HashMap
          extended bycom.fg.ftreenodes.MapParams
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, Params, java.io.Serializable

public class MapParams
extends java.util.HashMap
implements Params

Represents a HashMap which implements Params interface in such a way that getMap() method returns self-reference and getList() method returns List of objects which is stored in the MapParams under the key=null or returns null if there is no List stored.

Version:
1.0
Author:
Felix Golubov
See Also:
Params, Serialized Form

Field Summary
 
Fields inherited from interface com.fg.ftreenodes.Params
empty
 
Constructor Summary
MapParams()
           
 
Method Summary
 java.util.List getList()
          Method returns a java.util.List of unnamed parameters or null if there are no unnamed parameters.
 java.util.Map getMap()
          Method returns a java.util.Map of named parameters or null if there are no named parameters.
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

MapParams

public MapParams()
Method Detail

getList

public java.util.List getList()
Description copied from interface: Params
Method returns a java.util.List of unnamed parameters or null if there are no unnamed parameters.

Specified by:
getList in interface Params
Returns:
a java.util.List of parameters or null if there are no such parameters.

getMap

public java.util.Map getMap()
Description copied from interface: Params
Method returns a java.util.Map of named parameters or null if there are no named parameters.

Specified by:
getMap in interface Params
Returns:
a java.util.Map of named parameters or null if there are no named parameters.