commit | f4abdd3ae2fff17bcabd7904195affab6138ad1a | [log] [tgz] |
---|---|---|
author | Andreas Wundsam <andreas.wundsam@bigswitch.com> | Thu Aug 01 22:12:06 2013 -0700 |
committer | Andreas Wundsam <andreas.wundsam@bigswitch.com> | Thu Aug 01 22:12:06 2013 -0700 |
tree | 83f478c4277290ec950fe1523949f7478259b219 | |
parent | a94273b36be00790e3f88a0d161b16d18bf1061e [diff] |
java_gen/U64: support parseHexString
diff --git a/java_gen/pre-written/src/main/java/org/openflow/types/U64.java b/java_gen/pre-written/src/main/java/org/openflow/types/U64.java index c0cd475..a46ded3 100644 --- a/java_gen/pre-written/src/main/java/org/openflow/types/U64.java +++ b/java_gen/pre-written/src/main/java/org/openflow/types/U64.java
@@ -32,6 +32,10 @@ return new U64(raw); } + public static U64 parseHex(String hex) { + return new U64(new BigInteger(hex, 16).longValue()); + } + public long getValue() { return raw; }