package xhsun.gw2api.guildwars2.model.util;

/**
 * Character inventory bag item model class
 * @see Inventory character inventory item
 * @author xhsun
 * @since 2017-02-07
 */
public class Bag {
	private long id;
	private int size;
	private Inventory[] inventory;

	public long getId() {
		return id;
	}

	public int getSize() {
		return size;
	}

	public Inventory[] getInventory() {
		return inventory;
	}

	@Override
	public String toString(){
		String result="{Bag's Item ID: "+id+" Size: "+size+"\n";
		if (inventory!=null){
			result+="Items: ";
			for (Inventory item : inventory) result += item + "\n";
		}
		return result+"}";
	}
}

@@ -38,16 +38,40 @@
 .util;%0A%0A
+import java.util.List;%0A%0A
 /**%0A * C
@@ -260,16 +260,21 @@
 private 
+List%3C
 Inventor
@@ -274,18 +274,17 @@
 nventory
-%5B%5D
+%3E
  invento
@@ -379,16 +379,21 @@
 %09public 
+List%3C
 Inventor
@@ -397,10 +397,9 @@
 tory
-%5B%5D
+%3E
  get

change array of inventory to list of inventory