Initial opendaylight infrastructure commit!!
[controller.git] / third-party / openflowj / src / main / java / org / openflow / util / U64.java
1 package org.openflow.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 }