@Override public String _stringValue(final IScope scope) throws GamaRuntimeException { getContents(scope); StringBuilder sb = new StringBuilder(getBuffer().length(scope) * 200); for (IList s : getBuffer().iterable(scope)) { sb.append(s).append("\n"); // TODO Factorize the different calls to "new line" ... } sb.setLength(sb.length() - 1); return sb.toString(); }
@Override public String serialize(final boolean includingBuiltIn) { StringBuilder sb = new StringBuilder(); surround(sb, '[', ']', elements); return sb.toString(); }