@Override
  public String toString() {
    final List<Node> l;
    // final List vh;
    synchronized (this) {
      l = list;
      // vh = this.vhist;
    }
    StringBuilder sb = new StringBuilder();
    sb.append("ArrayList version = " + getVersion() + " Elements = { ");
    for (Node node : l) {
      sb.append(node.toString() + ", ");
    }
    // sb.append("vhist:\n " + vh);
    sb.append("}");
    return sb.toString();
  }
Prints the version and elements of the list.

@return String with version and elements of the list.
geode-core/src/main/java/org/apache/geode/internal/util/VersionedArrayList.java