text: public long ramBytesUsed() {long sizeInBytes = 0;for(Map.Entry<String,DirectField> entry: fields.entrySet()) {sizeInBytes += entry.getKey().length() * Character.BYTES;sizeInBytes += entry.getValue().ramBytesUsed();}return sizeInBytes;}