Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion app/src/main/java/com/odoo/core/orm/ODataRow.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import android.os.Bundle;
import android.os.Parcel;
import android.os.Parcelable;
import android.support.annotation.Nullable;

import com.odoo.core.orm.fields.OColumn;

Expand All @@ -32,7 +33,22 @@
public class ODataRow implements Parcelable {
public static final String TAG = ODataRow.class.getSimpleName();

HashMap<String, Object> _data = new HashMap<>();
private HashMap<String, Object> _data = new HashMap<>();

public ODataRow() {
super();
}

public ODataRow(@Nullable final ODataRow dataRow) {
super();
if (dataRow != null) {
_data = new HashMap<>(dataRow.getAll());
}
}

public Object remove(String key) {
return _data.remove(key);
}

public void put(String key, Object value) {
_data.put(key, value);
Expand Down