Capacity domain object was missing a toString() implementation

This commit is contained in:
Richard Downer 2011-12-06 11:15:03 +02:00
parent 16c6fadc0a
commit 38f5c2e3c7
1 changed files with 14 additions and 0 deletions

View File

@ -229,6 +229,20 @@ public class Capacity implements Comparable<Capacity> {
return result;
}
@Override
public String toString() {
return "[" +
"podId=" + podId +
", podName='" + podName + '\'' +
", zoneId=" + zoneId +
", zoneName='" + zoneName + '\'' +
", type=" + type +
", capacityUsed=" + capacityUsed +
", capacityTotal=" + capacityTotal +
", percentUsed=" + percentUsed +
']';
}
@Override
public int compareTo(Capacity other) {
int comparison = Long.valueOf(this.zoneId).compareTo(other.zoneId);