2 * Copyright (c) 2015 Pantheon Technologies s.r.o. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.yangtools.yang.model.util.type;
10 import org.opendaylight.yangtools.yang.common.QName;
11 import org.opendaylight.yangtools.yang.model.api.type.UnsignedIntegerTypeDefinition;
13 abstract class AbstractUnsignedBaseType<C extends Number & Comparable<C>>
14 extends AbstractRangeRestrictedBaseType<UnsignedIntegerTypeDefinition, C>
15 implements UnsignedIntegerTypeDefinition {
16 AbstractUnsignedBaseType(final QName qname, final C minValue, final C maxValue) {
17 super(qname, minValue, maxValue);
21 public final int hashCode() {
22 return TypeDefinitions.hashCode(this);
26 public final boolean equals(final Object obj) {
27 return TypeDefinitions.equals(this, obj);
31 public final String toString() {
32 return TypeDefinitions.toString(this);