toString method

String toString()
override

A string representation of this object.

Some classes have a default textual representation, often paired with a static parse function (like int.parse). These classes will provide the textual representation as their string representation.

Other classes have no meaningful textual representation that a program will care about. Such classes will typically override toString to provide useful information when inspecting the object, mainly for debugging or logging.

Implementation

String toString() {
  StringBuffer ret = new StringBuffer("BackupMeta(");

  ret.write("space_backups:");
  if (this.space_backups == null) {
    ret.write("null");
  } else {
    ret.write(this.space_backups);
  }

  ret.write(", ");
  ret.write("meta_files:");
  if (this.meta_files == null) {
    ret.write("null");
  } else {
    ret.write(this.meta_files);
  }

  ret.write(", ");
  ret.write("backup_name:");
  if (this.backup_name == null) {
    ret.write("null");
  } else {
    ret.write("BINARY");
  }

  ret.write(", ");
  ret.write("full:");
  ret.write(this.full);

  ret.write(", ");
  ret.write("all_spaces:");
  ret.write(this.all_spaces);

  ret.write(", ");
  ret.write("create_time:");
  ret.write(this.create_time);

  ret.write(", ");
  ret.write("base_backup_name:");
  if (this.base_backup_name == null) {
    ret.write("null");
  } else {
    ret.write("BINARY");
  }

  ret.write(", ");
  ret.write("storage_hosts:");
  if (this.storage_hosts == null) {
    ret.write("null");
  } else {
    ret.write(this.storage_hosts);
  }

  ret.write(", ");
  ret.write("cluster_id:");
  ret.write(this.cluster_id);

  ret.write(")");

  return ret.toString();
}