@Override
  public boolean isNewerThan(Versionable other) {
    if (other instanceof VersionedArrayList) {
      final long v = (Long) other.getVersion();
      synchronized (this) {
        return version > v;
      }
    } else {
      final Comparable o = other.getVersion();
      return getVersion().compareTo(o) > 0;
    }
  }
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