cf355bd45c552aa2bf8f39e60a3ee1b612e3fcb1
[yangtools.git] / xpath / yang-xpath-api / src / main / java / org / opendaylight / yangtools / yang / xpath / api / YangNumberExpr.java
1 /*
2  * Copyright (c) 2018 Pantheon Technologies, s.r.o.  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.xpath.api;
9
10 import com.google.common.annotations.Beta;
11 import org.eclipse.jdt.annotation.Nullable;
12
13 /**
14  * A number-bearing expression.
15  */
16 @Beta
17 public abstract class YangNumberExpr implements YangExpr {
18     private static final long serialVersionUID = 1L;
19
20     YangNumberExpr() {
21         // Hidden to prevent external subclassing
22     }
23
24     public abstract Number getNumber();
25
26     public abstract YangXPathMathSupport getSupport();
27
28     @Override
29     public abstract int hashCode();
30
31     @Override
32     public abstract boolean equals(@Nullable Object obj);
33 }