Merge "When a node is going down, remove edges in both directions associated with...
[controller.git] / opendaylight / sal / yang-prototype / yang / yang-model-parser-impl / src / main / java / org / opendaylight / controller / yang / parser / util / UnknownBoundaryNumber.java
1 /*
2  * Copyright (c) 2013 Cisco Systems, Inc. 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.controller.yang.parser.util;
9
10 /**
11  * Marker object representing special 'min' or 'max' values in YANG.
12  */
13 final class UnknownBoundaryNumber extends Number {
14     private static final long serialVersionUID = 1464861684686434869L;
15
16     private final String value;
17
18     UnknownBoundaryNumber(final String value) {
19         this.value = value;
20     }
21
22     @Override
23     public int intValue() {
24         return 0;
25     }
26
27     @Override
28     public long longValue() {
29         return 0;
30     }
31
32     @Override
33     public float floatValue() {
34         return 0;
35     }
36
37     @Override
38     public double doubleValue() {
39         return 0;
40     }
41
42     @Override
43     public String toString() {
44         return value;
45     }
46
47 }