package tech.zafrani.companionforpubg.models.items;

import android.support.annotation.NonNull;

import com.google.gson.annotations.SerializedName;

import java.util.HashMap;

public class Categories extends HashMap<String, Category> {

    // @SerializedName("weapon_category")
    //private final WeaponCategory weaponCategory;

    public Categories() {

    }


    @Override
    public String toString() {
        String cat = "Categories{";
        for (final Entry<String, Category> entry : entrySet()) {
            if (entry == null || entry.getValue() == null) {
                continue;
            }
            cat += entry.getKey() + ", " + entry.getValue().toString();
        }
        cat += '}';
        return cat;
    }
}

@@ -57,312 +57,87 @@
 ort 
-android.support.annotation.NonNull;%0A%0Aimport com.google.gson.annotations.SerializedName;%0A%0Aimport java.util.HashMap;%0A%0Apublic class Categories extends HashMap%3CString, Category%3E %7B%0A%0A    // @SerializedName(%22weapon_category%22)%0A    //private final WeaponCategory weaponCategory;%0A%0A    public Categories() %7B%0A%0A    %7D%0A
+java.util.HashMap;%0A%0Apublic class Categories extends HashMap%3CString, Category%3E %7B
 %0A%0A  
@@ -194,19 +194,28 @@
  String 
-cat
+returnString
  = %22Cate
@@ -402,22 +402,38 @@
         
-cat +=
+returnString += %22%5Cn%22 +
  entry.g
@@ -500,18 +500,30 @@
     
-cat += '%7D'
+returnString += %22 %5Cn%7D%22
 ;%0A  
@@ -539,11 +539,20 @@
 urn 
-cat
+returnString
 ;%0A  

Clean up