Package | Description |
---|---|
net.sf.kdgcommons.collections |
Utilities for working with arrays and the JDK collections framework.
|
net.sf.kdgcommons.lang |
Utilities for working with the core JDK classes.
|
Modifier and Type | Interface and Description |
---|---|
static interface |
DefaultMap.ValueFactory<T>
This interface defines a factory for default values.
|
Modifier and Type | Class and Description |
---|---|
static class |
DefaultMap.StaticValueFactory<T>
An implementation of the
DefaultMap.ValueFactory interface for
static values. |
Constructor and Description |
---|
DefaultMap(Map<K,V> delegate,
ObjectFactory<V> factory)
Constructs an instance that returns a dynamic value and will update
the underlying map.
|
DefaultMap(Map<K,V> delegate,
ObjectFactory<V> factory,
boolean update)
Base constructor, allowing full configuration.
|
Modifier and Type | Method and Description |
---|---|
static <T> T |
ObjectUtil.defaultValue(T value,
ObjectFactory<T> fact)
Returns the passed
value , unless it's null, in which case
the objectFactory is queried for a value. |