Modifier and Type | Field and Description |
---|---|
protected Object |
fields |
protected Map<String,Method> |
getters |
protected Object |
obj |
protected String |
prefix |
protected String |
suffix |
Constructor and Description |
---|
BeanMap(Object obj) |
BeanMap(Object obj,
String prefix,
String suffix)
Construct bean map from bean object.
|
BeanMap(Object obj,
String prefix,
String suffix,
Object fields)
Construct bean map from bean object.
|
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<String,Object>> |
entrySet() |
Object |
get(Object key) |
protected Map<String,Method> |
getGettersMap() |
boolean |
isEmpty() |
Set<String> |
keySet() |
Object |
put(String key,
Object value) |
void |
putAll(Map<? extends String,? extends Object> methods) |
Object |
remove(Object key) |
int |
size() |
String |
toString() |
Collection<Object> |
values() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
protected Object obj
protected String prefix
protected String suffix
protected Object fields
public BeanMap(Object obj)
public BeanMap(Object obj, String prefix, String suffix)
obj
- base objectprefix
- map keys prefixsuffix
- map keys suffixpublic boolean containsKey(Object key)
containsKey
in interface Map<String,Object>
public boolean containsValue(Object value)
containsValue
in interface Map<String,Object>
Copyright © 2022. All rights reserved.