|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.groovy.grails.commons.metaclass.LazyMetaPropertyMap
public class LazyMetaPropertyMap
A map implementation that reads an objects properties lazily using Groovy's MetaClass
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
Map.Entry |
| Constructor Summary | |
|---|---|
LazyMetaPropertyMap(Object o)
Constructs the map |
|
| Method Summary | |
|---|---|
void |
clear()
|
boolean |
containsKey(Object propertyName)
|
boolean |
containsValue(Object o)
Checks whether the specified value is contained within the Map. |
Set |
entrySet()
|
boolean |
equals(Object o)
|
Object |
get(Object propertyName)
Obtains the value of an object's properties on demand using Groovy's MOP |
Object |
getInstance()
Returns the wrapped instance |
int |
hashCode()
|
boolean |
isEmpty()
|
Set |
keySet()
|
Object |
put(Object propertyName,
Object propertyValue)
|
void |
putAll(Map map)
|
Object |
remove(Object o)
|
int |
size()
|
Collection |
values()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LazyMetaPropertyMap(Object o)
o - The object to inspect| Method Detail |
|---|
public int size()
size in interface MapMap.size()public boolean isEmpty()
isEmpty in interface MapMap.isEmpty()public boolean containsKey(Object propertyName)
containsKey in interface MapMap.containsKey(Object)public boolean containsValue(Object o)
containsValue in interface MapMap.containsValue(Object)public Object get(Object propertyName)
get in interface MappropertyName - The name of the property
public Object put(Object propertyName,
Object propertyValue)
put in interface Mappublic Object remove(Object o)
remove in interface MapUnsupportedOperationExceptionpublic void putAll(Map map)
putAll in interface Mappublic void clear()
clear in interface MapUnsupportedOperationExceptionpublic Set keySet()
keySet in interface Mappublic Collection values()
values in interface Mappublic int hashCode()
hashCode in interface MaphashCode in class Objectpublic boolean equals(Object o)
equals in interface Mapequals in class Objectpublic Object getInstance()
public Set entrySet()
entrySet in interface Map
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||