Update yang-xpath-api design
[yangtools.git] / yang / 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
12 /**
13  * A number-bearing expression.
14  */
15 @Beta
16 public abstract class YangNumberExpr<T extends YangNumberExpr<T, N>, N extends Number> implements YangExpr {
17     private static final long serialVersionUID = 1L;
18
19     YangNumberExpr() {
20         // Hidden to prevent external subclassing
21     }
22
23     public abstract N getNumber();
24
25     public abstract YangXPathMathSupport<T> getSupport();
26 }