Add a toString method to ApfCapabilities.

Change-Id: I505b90b7cd818cb3477990ec6b41b16db46d1c08
This commit is contained in:
Lorenzo Colitti
2016-03-28 15:22:30 +09:00
parent 6b7f7a0852
commit bd0c0af47f

View File

@@ -43,4 +43,9 @@ public class ApfCapabilities {
this.maximumApfProgramSize = maximumApfProgramSize; this.maximumApfProgramSize = maximumApfProgramSize;
this.apfPacketFormat = apfPacketFormat; this.apfPacketFormat = apfPacketFormat;
} }
public String toString() {
return String.format("%s{version: %d, maxSize: %d format: %d}", getClass().getSimpleName(),
apfVersionSupported, maximumApfProgramSize, apfPacketFormat);
}
} }