public final void internalToString(final StringBuilder repr, final String prefix) { repr.append(prefix).append("contents="); if (this.contents.isEmpty()) { repr.append("{}").append('\n'); } else { repr.append("(").append(this.contents.size()).append(" elements)...\n"); for (int i = 0; i < this.contents.size(); ++i) { final Content contents_element = this.contents.get(i); contents_element.internalToString(repr, prefix + i + "/ "); } } repr.append(prefix).append("contentsSelection="); if (this.contentsSelection == null) { repr.append("{}").append('\n'); } else { repr.append("...\n"); this.contentsSelection.internalToString(repr, prefix + " "); } repr.append(prefix).append("buyableContents="); if (this.buyableContents.isEmpty()) { repr.append("{}").append('\n'); } else { repr.append("(").append(this.buyableContents.size()).append(" elements)...\n"); for (int i = 0; i < this.buyableContents.size(); ++i) { final BuyableContent buyableContents_element = this.buyableContents.get(i); buyableContents_element.internalToString(repr, prefix + i + "/ "); } } }
public final void internalToString(final StringBuilder repr, final String prefix) { repr.append(prefix).append("gems="); if (this.gems.isEmpty()) { repr.append("{}").append('\n'); } else { repr.append("(").append(this.gems.size()).append(" elements)...\n"); for (int i = 0; i < this.gems.size(); ++i) { final Content gems_element = this.gems.get(i); gems_element.internalToString(repr, prefix + i + "/ "); } } }