code: public final long shallowSizeOf(Object obj) {
  
  		if (obj == null) {
  			return 0;
  		}
  
  		if (obj.getClass().isArray()) {
  			return doShallowSizeOfArray(obj);
  		} else {
  			return doShallowSizeOfClass(obj.getClass());
  		}
  	}
docs: Determines the shallow memory size of the given object (object or array)
  @param obj The object instance to calculate the shallow size for
  @return Size in bytes