ObjectsBag.java - Source code of artefact used in this tutorial
Given below is the source code of class com.techfundaes.gsonBag.ObjectsBag which is used in earlier examples.
package com.techfundaes.gsonBag; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; public class ObjectsBag { PrimitivesBag pBag = new PrimitivesBag(); Date currentDate = Calendar.getInstance().getTime(); SimpleDateFormat sdf; public String toString() { StringBuilder builder = new StringBuilder(); builder.append("ObjectsBag [pBag=").append(pBag) .append(", currentDate=").append(currentDate).append(", sdf=") .append(sdf).append("]"); return builder.toString(); } }