public class DictFactory
extends java.lang.Object
Constructor and Description |
---|
DictFactory() |
Modifier and Type | Method and Description |
---|---|
static Dict |
instance()
returns an empty instance of unsafe immutable dictionary.
|
static Dict |
instance(java.lang.Class impl_type)
To create an empty Dict object with a specified subclass
of java.util.HashMap as the underlying mutable data structure.
|
static Dict |
merge(Dict d1,
Dict d2)
Add the contents in the second Dict object into the first.
|
static Dict |
safeInstance()
same as instance() except this is a thread-safe version
|
static Dict |
safeInstance(java.lang.Class impl_type)
To create an empty and thread-safe Dict object with a specified subclass
of java.util.HashMap as the underlying mutable data structure.
|
static Dict |
subtract(Dict d1,
Dict d2)
Remove the elements contained in the second Dict object from the first.
|
public static Dict instance(java.lang.Class impl_type)
impl_type
- the implementation class.public static Dict safeInstance(java.lang.Class impl_type)
impl_type
- the implementation class.public static Dict instance()
public static Dict safeInstance()
public static Dict merge(Dict d1, Dict d2)
d1
- the first Dict object.d2
- the second Dict object.