Skip to content

Commit bbf7900

Browse files
author
Prachi Damle
committed
Adding pretty toString() to AffinityGroup
1 parent fc248cb commit bbf7900

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎server/src/org/apache/cloudstack/affinity/AffinityGroupVO.java‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,4 +104,11 @@ public String getType() {
104104
return type;
105105
}
106106

107+
@Override
108+
public String toString() {
109+
StringBuilder buf = new StringBuilder("AffinityGroup[");
110+
buf.append(id).append("|").append(name).append("|").append(type).append("]");
111+
return buf.toString();
112+
}
113+
107114
}

0 commit comments

Comments
 (0)