com.acsinet_solutions.util.adt
Class Catalog<K,V>
java.lang.Object
com.acsinet_solutions.util.adt.MapDelegator<T,U>
com.acsinet_solutions.util.adt.ExceptionMap<java.lang.String,java.util.Map<K,V>>
com.acsinet_solutions.util.adt.Catalog<K,V>
- All Implemented Interfaces:
- java.io.Serializable, java.util.Map<java.lang.String,java.util.Map<K,V>>
public abstract class Catalog<K,V>
- extends ExceptionMap<java.lang.String,java.util.Map<K,V>>
- implements java.io.Serializable
Implementation of a read-only map-based multi-view catalog instance.
base. A catalog is a map of maps, with a main map, and alternative
data views.
Derechos Reservados
- Author:
- Santiago Arriaga
- See Also:
- Serialized Form
| Nested classes/interfaces inherited from interface java.util.Map |
java.util.Map.Entry<K,V> |
|
Field Summary |
protected static java.lang.String |
MAIN_KEY
Main map, always exist. |
|
Constructor Summary |
Catalog(java.util.Map<K,V> map)
Parametric Constructor |
|
Method Summary |
protected void |
addView(java.lang.String name,
MapFilter<K,V> filter)
Add a new view. |
java.util.Map<K,V> |
getMain()
Get a reference to the unmodifiable main map. |
| Methods inherited from class com.acsinet_solutions.util.adt.ExceptionMap |
get |
| Methods inherited from class com.acsinet_solutions.util.adt.MapDelegator |
clear, containsKey, containsValue, entrySet, getCurrent, isEmpty, keySet, put, putAll, remove, setCurrent, size, values |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Map |
equals, hashCode |
MAIN_KEY
protected static final java.lang.String MAIN_KEY
- Main map, always exist.
- See Also:
- Constant Field Values
Catalog
public Catalog(java.util.Map<K,V> map)
- Parametric Constructor
- Parameters:
map - The generic not-null map instance
addView
protected final void addView(java.lang.String name,
MapFilter<K,V> filter)
- Add a new view. More compact and convenient methods may be added in
future versions if necessary.
getMain
public final java.util.Map<K,V> getMain()
- Get a reference to the unmodifiable main map. This is the same
as get( MAIN_KEY )
- Returns:
- A not-null Map instance