5fb460ca5af35f1df49837e7a4ce4e3083714fc5
[yangtools.git] / yang / yang-model-api / src / main / java / org / opendaylight / yangtools / yang / model / api / type / Int64TypeDefinition.java
1 /*
2  * Copyright (c) 2017 Pantheon Technologies, s.r.o. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.yangtools.yang.model.api.type;
9
10 /**
11  * Type definition derived from int64 type.
12  *
13  * @author Robert Varga
14  */
15 public interface Int64TypeDefinition extends RangeRestrictedTypeDefinition<Int64TypeDefinition, Long> {
16
17     static int hashCode(final Int64TypeDefinition type) {
18         return TypeDefinitions.hashCode(type);
19     }
20
21     static boolean equals(final Int64TypeDefinition type, final Object obj) {
22         return TypeDefinitions.equals(Int64TypeDefinition.class, type, obj);
23     }
24
25     static String toString(final Int64TypeDefinition type) {
26         return TypeDefinitions.toString(type);
27     }
28 }