1 package org.opendaylight.controller.sal.binding.dom.serializer.api;
3 import java.util.Map.Entry;
5 import org.opendaylight.yangtools.yang.common.QName;
7 public class ValueWithQName<V> implements Entry<QName, V>{
12 public ValueWithQName(QName qname, V value) {
18 public QName getQname() {
27 public QName getKey() {
32 public V setValue(V value) {
33 throw new UnsupportedOperationException();
37 public int hashCode() {
40 result = prime * result + ((qname == null) ? 0 : qname.hashCode());
41 result = prime * result + ((value == null) ? 0 : value.hashCode());
46 public boolean equals(Object obj) {
53 if (getClass() != obj.getClass()) {
56 @SuppressWarnings("rawtypes")
57 ValueWithQName other = (ValueWithQName) obj;
59 if (other.qname != null)
61 } else if (!qname.equals(other.qname))
64 if (other.value != null) {
67 } else if (!value.equals(other.value)) {