|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjfun.util.dict.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 |
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 |
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()
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 |