package com.github.dockerjava.api.model;

import java.util.Map;

import org.apache.commons.lang.builder.ToStringBuilder;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * Representation of a Docker statistics.
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public class Statistics {

    @JsonProperty("read")
    private String read;

    @JsonProperty("networks")
    private Map<String, Object> networksStats;

    /**
     * Deprecated as of Docker Remote API 1.21
     */
    @Deprecated
    @JsonProperty("network")
    private Map<String, Object> networkStats;

    @JsonProperty("memory_stats")
    private Map<String, Object> memoryStats;

    @JsonProperty("blkio_stats")
    private Map<String, Object> blkioStats;

    @JsonProperty("cpu_stats")
    private Map<String, Object> cpuStats;

    public Map<String, Object> getNetworksStats() {
        return networksStats;
    }

    public Map<String, Object> getNetworkStats() {
        return networkStats;
    }

    public Map<String, Object> getCpuStats() {
        return cpuStats;
    }

    public Map<String, Object> getMemoryStats() {
        return memoryStats;
    }

    public Map<String, Object> getBlkioStats() {
        return blkioStats;
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }
}

@@ -58,16 +58,55 @@
 l.Map;%0A%0A
+import javax.annotation.CheckForNull;%0A%0A
 import o
@@ -153,16 +153,16 @@
 uilder;%0A
-
 %0Aimport 
@@ -444,16 +444,87 @@
  read;%0A%0A
+    /**%0A     * @since Docker Remote API 1.21%0A     */%0A    @CheckForNull%0A
     @Jso
@@ -608,17 +608,18 @@
 %0A     * 
-D
+@d
 eprecate
@@ -640,32 +640,68 @@
  Remote API 1.21
+, replaced by %7B@link #networksStats%7D
 %0A     */%0A    @De
@@ -1013,24 +1013,95 @@
  cpuStats;%0A%0A
+    /**%0A     * @since Docker Remote API 1.21%0A     */%0A    @CheckForNull%0A
     public M
@@ -1169,32 +1169,153 @@
 ksStats;%0A    %7D%0A%0A
+    /**%0A     * @deprecated as of Docker Remote API 1.21, replaced by %7B@link #getNetworksStats()%7D%0A     */%0A    @Deprecated%0A
     public Map%3CS

Improve JavaDoc and include @CheckForNull