|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjfun.util.dict.DictFactory
public class DictFactory
The factory to create Dict objects.
| Constructor Summary | |
|---|---|
DictFactory()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DictFactory()
| Method Detail |
|---|
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.
public static Dict subtract(Dict d1,
Dict d2)
d1 - the first Dict object.d2 - the second Dict object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||