Add YangInstanceIdentifier.coerceParent()
[yangtools.git] / yang / yang-data-api / src / main / java / org / opendaylight / yangtools / yang / data / api / codec / Int32Codec.java
index 5045586c826c1f50407bdc58e780cf10f94b887a..afc6819be53ae0133566333526e8b1655a5f8796 100644 (file)
@@ -1,9 +1,14 @@
+/*
+ * Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
 package org.opendaylight.yangtools.yang.data.api.codec;
 
+import org.opendaylight.yangtools.concepts.IllegalArgumentCodec;
 
-public interface Int32Codec<T> {
+public interface Int32Codec<T> extends IllegalArgumentCodec<T,Integer> {
 
-    public T serialize(Integer data);
-
-    public Integer deserialize(T data);
 }