2 * Copyright (c) 2017 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 java.math.BigInteger;
11 import java.util.Collection;
12 import org.eclipse.jdt.annotation.Nullable;
13 import org.opendaylight.yangtools.yang.model.api.SchemaPath;
14 import org.opendaylight.yangtools.yang.model.api.UnknownSchemaNode;
15 import org.opendaylight.yangtools.yang.model.api.type.RangeConstraint;
16 import org.opendaylight.yangtools.yang.model.api.type.Uint64TypeDefinition;
18 final class RestrictedUint64Type extends AbstractRangeRestrictedType<Uint64TypeDefinition, BigInteger>
19 implements Uint64TypeDefinition {
21 RestrictedUint64Type(final Uint64TypeDefinition baseType, final SchemaPath path,
22 final Collection<UnknownSchemaNode> unknownSchemaNodes,
23 final @Nullable RangeConstraint<BigInteger> rangeConstraint) {
24 super(baseType, path, unknownSchemaNodes, rangeConstraint);
28 public int hashCode() {
29 return TypeDefinitions.hashCode(this);
33 public boolean equals(final Object obj) {
34 return TypeDefinitions.equals(this, obj);
38 public String toString() {
39 return TypeDefinitions.toString(this);