QNameModule/QName should implement Identifier
[yangtools.git] / yang / yang-common / src / main / java / org / opendaylight / yangtools / yang / common / QName.java
index 931be4437b5329c2b2278e855f23abc6b37fdf53..87577f0d0f5c60a1af3264145b7abed4d3b94dfe 100644 (file)
@@ -23,6 +23,7 @@ import java.util.regex.Pattern;
 import javax.annotation.Nonnull;
 import javax.annotation.Nullable;
 import javax.annotation.RegEx;
+import org.opendaylight.yangtools.concepts.Identifier;
 import org.opendaylight.yangtools.concepts.Immutable;
 
 /**
@@ -49,7 +50,7 @@ import org.opendaylight.yangtools.concepts.Immutable;
  * affect equality and identity of two QNames and carry only information
  * which may be useful for serializers / deserializers.
  */
-public final class QName implements Immutable, Serializable, Comparable<QName> {
+public final class QName implements Immutable, Serializable, Comparable<QName>, Identifier {
     private static final Interner<QName> INTERNER = Interners.newWeakInterner();
     private static final long serialVersionUID = 5398411242927766414L;