diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-11-06 11:56:19 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-11-06 11:56:19 +1300 |
commit | 23f83e9f1c6c0f183256a3952a8b3a819dc0ea1c (patch) | |
tree | 6bc1a27981a68e9ac8936f30f6f2a0cd77e09bed /src/org/traccar/model/Extensible.java | |
parent | 04a40e1cfb9484f3ab25a3390249355bc3e711ae (diff) | |
download | trackermap-server-23f83e9f1c6c0f183256a3952a8b3a819dc0ea1c.tar.gz trackermap-server-23f83e9f1c6c0f183256a3952a8b3a819dc0ea1c.tar.bz2 trackermap-server-23f83e9f1c6c0f183256a3952a8b3a819dc0ea1c.zip |
Finish OBD decoder implementation
Diffstat (limited to 'src/org/traccar/model/Extensible.java')
-rw-r--r-- | src/org/traccar/model/Extensible.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/org/traccar/model/Extensible.java b/src/org/traccar/model/Extensible.java index a821d0e43..40a286987 100644 --- a/src/org/traccar/model/Extensible.java +++ b/src/org/traccar/model/Extensible.java @@ -52,4 +52,10 @@ public abstract class Extensible extends Message { } } + public void add(Map.Entry<String, Object> entry) { + if (entry.getValue() != null) { + attributes.put(entry.getKey(), entry.getValue()); + } + } + } |