示例#1
0
 @Override
 public String debugDump(int indent) {
   StringBuilder sb = new StringBuilder();
   DebugUtil.indentDebugDump(sb, indent);
   sb.append("ObjectWrapper(\n");
   DebugUtil.debugDumpWithLabel(sb, "displayName", displayName, indent + 1);
   sb.append("\n");
   DebugUtil.debugDumpWithLabel(sb, "description", description, indent + 1);
   sb.append("\n");
   DebugUtil.debugDumpWithLabel(
       sb, "object", object == null ? null : object.toString(), indent + 1);
   sb.append("\n");
   DebugUtil.debugDumpWithLabel(
       sb, "objectOld", objectOld == null ? null : objectOld.toString(), indent + 1);
   sb.append("\n");
   DebugUtil.debugDumpWithLabel(sb, "oldDelta", oldDelta, indent + 1);
   sb.append("\n");
   DebugUtil.debugDumpWithLabel(
       sb, "status", status == null ? null : status.toString(), indent + 1);
   sb.append("\n");
   DebugUtil.debugDumpWithLabel(
       sb, "headerStatus", headerStatus == null ? null : headerStatus.toString(), indent + 1);
   sb.append("\n");
   DebugUtil.debugDumpWithLabel(sb, "containers", containers, indent + 1);
   sb.append("\n");
   DebugUtil.indentDebugDump(sb, indent);
   sb.append(")");
   return sb.toString();
 }
示例#2
0
 @Override
 public String toString() {
   StringBuilder builder = new StringBuilder();
   builder.append("ObjectWrapper(");
   builder.append(ContainerWrapper.getDisplayNameFromItem(object));
   builder.append(" (");
   builder.append(status);
   builder.append(") ");
   builder.append(getContainers() == null ? null : getContainers().size());
   builder.append(" containers)");
   return builder.toString();
 }