@SuppressWarnings({ "unchecked", "rawtypes" }) @CompileStatic public class LazyMetaPropertyMap extends Object implements Map
A map implementation that reads an objects properties lazily using Groovy's MetaClass.
Constructor and description |
---|
LazyMetaPropertyMap(Object o) Constructs the map |
Type Params | Return Type | Name and description |
---|---|---|
|
public void |
clear()
|
|
public boolean |
containsKey(Object propertyName) {@inheritDoc} |
|
public boolean |
containsValue(Object o) Checks whether the specified value is contained within the Map. |
|
public Set<MapEntry> |
entrySet() |
|
public boolean |
equals(Object o) |
|
public Object |
get(Object propertyName) Obtains the value of an object's properties on demand using Groovy's MOP. |
|
public Object |
getInstance() Returns the wrapped instance. |
|
public int |
hashCode() |
|
public boolean |
isEmpty() {@inheritDoc} |
|
public Set<String> |
keySet() |
|
public Object |
put(Object propertyName, Object propertyValue) |
|
public void |
putAll(Map map) |
|
public Object |
remove(Object o)
|
|
public int |
size() {@inheritDoc} |
|
public Collection<Object> |
values() |
Constructs the map
o
- The object to inspect{@inheritDoc}
Checks whether the specified value is contained within the Map. Note that because this implementation lazily initialises property values the behaviour may not be consistent with the actual values of the contained object unless they have already been initialised by calling get(Object)
Obtains the value of an object's properties on demand using Groovy's MOP.
propertyName
- The name of the propertyReturns the wrapped instance.
{@inheritDoc}