mirror of https://github.com/apache/jclouds.git
Capacity domain object was missing a toString() implementation
This commit is contained in:
parent
16c6fadc0a
commit
38f5c2e3c7
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue