|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractMap<K,V>
org.jboss.cache.util.MapCopy<K,V>
public class MapCopy<K,V>
Contains a fixed array of read-only map entries, from a copy of an existing map. This class is more lightweight for places where the copied map will just be iterated over.
This map is strictly read-only, and map modification methods (as well as modifications over iterators) will throwUnsupportedOperationExceptions.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
java.util.Map.Entry<K,V> |
| Constructor Summary | |
|---|---|
MapCopy()
|
|
MapCopy(java.util.Map<K,V> m)
Copies the supplied map to an internal array. |
|
| Method Summary | |
|---|---|
java.util.Set<java.util.Map.Entry<K,V>> |
entrySet()
|
int |
size()
|
| Methods inherited from class java.util.AbstractMap |
|---|
clear, clone, containsKey, containsValue, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, toString, values |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MapCopy(java.util.Map<K,V> m)
m - map to copypublic MapCopy()
| Method Detail |
|---|
public java.util.Set<java.util.Map.Entry<K,V>> entrySet()
entrySet in interface java.util.Map<K,V>entrySet in class java.util.AbstractMap<K,V>public int size()
size in interface java.util.Map<K,V>size in class java.util.AbstractMap<K,V>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||