Package | Description |
---|---|
jfun.util.dict |
Provides classes and interfaces for functional associative array.
|
Modifier and Type | Method and Description |
---|---|
Dict |
Dict.copy()
Create a copy of the Dict object.
|
static Dict |
DictFactory.instance()
returns an empty instance of unsafe immutable dictionary.
|
static Dict |
DictFactory.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 |
DictFactory.merge(Dict d1,
Dict d2)
Add the contents in the second Dict object into the first.
|
Dict |
Dict.put(java.lang.Object key,
java.lang.Object val)
Functional update.
|
Dict |
Dict.puts(java.lang.Object[] keys,
java.lang.Object[] vals)
Functional update.
|
Dict |
Dict.remove(java.lang.Object key)
Functional update.
|
Dict |
Dict.removes(java.lang.Object[] keys)
Functional update.
|
static Dict |
DictFactory.safeInstance()
same as instance() except this is a thread-safe version
|
static Dict |
DictFactory.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 |
DictFactory.subtract(Dict d1,
Dict d2)
Remove the elements contained in the second Dict object from the first.
|
Modifier and Type | Method and Description |
---|---|
static Dict |
DictFactory.merge(Dict d1,
Dict d2)
Add the contents in the second Dict object into the first.
|
static Dict |
DictFactory.subtract(Dict d1,
Dict d2)
Remove the elements contained in the second Dict object from the first.
|