use of com.tvd12.ezyfoxserver.client.util.EzyObjectToMap in project ezyfox-server-android-client by youngmonkeys.
the class EzyHashMap method toMap.
/*
* (non-Javadoc)
* @see com.tvd12.ezyfox.entity.EzyRoObject#toMap()
*/
@Override
public Map toMap() {
EzyObjectToMap objectToMap = EzyObjectToMap.getInstance();
Map map = objectToMap.toMap(this);
return map;
}
use of com.tvd12.ezyfoxserver.client.util.EzyObjectToMap in project ezyfox-server-android-client by youngmonkeys.
the class EzyArrayToList method toList.
@SuppressWarnings({ "rawtypes", "unchecked" })
public List toList(EzyArray array) {
List answer = new ArrayList<>();
for (int i = 0; i < array.size(); ++i) {
Object item = array.get(i);
Object sitem = item;
if (item != null) {
EzyObjectToMap objectToMap = EzyObjectToMap.getInstance();
if (item instanceof EzyObject)
sitem = objectToMap.toMap((EzyObject) item);
else if (item instanceof EzyArray)
sitem = toList((EzyArray) item);
}
answer.add(sitem);
}
return answer;
}
Aggregations