|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.acsinet_solutions.util.adt.MapDelegator<T,U>
com.acsinet_solutions.util.adt.ExceptionMap<T,U>
public class ExceptionMap<T,U>
Map that throws an exception if the desired key was not found, this is useful for classes where error reporting is desired as soon as possible.
WARNING! This class is not meant to be accessed by various threads at a time as it is not thread-safe
Derechos Reservados
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
java.util.Map.Entry<K,V> |
| Constructor Summary | |
|---|---|
ExceptionMap()
Public default constructor |
|
ExceptionMap(int initial)
Public default constructor |
|
ExceptionMap(java.util.Map<T,U> map)
Public constructor |
|
| Method Summary | |
|---|---|
U |
get(java.lang.Object key)
Return the object associated with the given key. |
| 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 |
| Constructor Detail |
|---|
public ExceptionMap()
public ExceptionMap(int initial)
public ExceptionMap(java.util.Map<T,U> map)
map - Wrapped map structure| Method Detail |
|---|
public final U get(java.lang.Object key)
get in interface java.util.Map<T,U>get in class MapDelegator<T,U>key - The not-null key to the desired value
java.lang.IllegalArgumentException - Thrown if the key was not
found
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||