*/
package org.opendaylight.yangtools.yang.data.api.codec;
-import java.math.BigInteger;
-
-import org.opendaylight.yangtools.concepts.Codec;
-
-import com.google.common.primitives.UnsignedLong;
+import org.opendaylight.yangtools.concepts.IllegalArgumentCodec;
+import org.opendaylight.yangtools.yang.common.Uint64;
/**
- * FIXME: Should be changed to {@link UnsignedLong}
- *
- * @author ttkacik
+ * A codec between Uint64 and some other representation.
*
- * @param <T>
+ * @param <T> Output type of serialization.
*/
-public interface Uint64Codec<T> extends Codec<T,BigInteger> {
- @Override
- T serialize(BigInteger data);
+public interface Uint64Codec<T> extends IllegalArgumentCodec<T, Uint64> {
- @Override
- BigInteger deserialize(T data);
}