X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fsal%2Fapi%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Fcore%2FTables.java;h=b92c4b693c063bb6e9a093b84ee32c62de19f8fa;hb=f7d227dbdcc0229282ba6d6513fbbde55324b25e;hp=22cff90bb5dd3a9fc7f3852e7e100ab9b5fb65ff;hpb=b4f7106f7b4267b51701eff2d3499c0e12423048;p=controller.git diff --git a/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/core/Tables.java b/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/core/Tables.java index 22cff90bb5..b92c4b693c 100644 --- a/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/core/Tables.java +++ b/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/core/Tables.java @@ -21,15 +21,15 @@ import javax.xml.bind.annotation.XmlRootElement; */ @XmlRootElement public class Tables extends Property { - private static final long serialVersionUID = 1L; - @XmlElement + private static final long serialVersionUID = 1L; + @XmlElement(name="value") private byte tablesValue; - + public static final String TablesPropName = "tables"; /** * Construct a Tables property * - * @param tables the Tables + * @param tables the Tables * @return Constructed object */ public Tables(byte tables) { @@ -45,6 +45,7 @@ public class Tables extends Property { this.tablesValue = 0; } + @Override public Tables clone() { return new Tables(this.tablesValue); } @@ -52,7 +53,7 @@ public class Tables extends Property { public byte getValue() { return this.tablesValue; } - + @Override public int hashCode() { final int prime = 31; @@ -79,4 +80,9 @@ public class Tables extends Property { public String toString() { return "Tables[" + tablesValue + "]"; } + + @Override + public String getStringValue() { + return String.format("%02x", tablesValue); + } }