Code Review
/
openflowjava.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
51ac8a225dd05b9cb34ff0a7c7c0fe2d69dc83b1
[openflowjava.git]
/
third-party
/
openflow-codec
/
src
/
main
/
java
/
org
/
openflow
/
codec
/
util
/
U64.java
1
package org.openflow.codec.util;
2
3
import java.math.BigInteger;
4
5
public class U64 {
6
public static BigInteger f(long i) {
7
return new BigInteger(Long.toBinaryString(i), 2);
8
}
9
10
public static long t(BigInteger l) {
11
return l.longValue();
12
}
13
}