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.IntegerTypeDefinition;
13 abstract class AbstractIntegerBaseType extends AbstractRangedBaseType<IntegerTypeDefinition> implements IntegerTypeDefinition {
14 AbstractIntegerBaseType(final QName qname, final Number minValue, final Number maxValue) {
15 super(qname, minValue, maxValue);
19 public final int hashCode() {
20 return TypeDefinitions.hashCode(this);
24 public final boolean equals(final Object obj) {
25 return TypeDefinitions.equals(this, obj);
29 public final String toString() {
30 return TypeDefinitions.toString(this);