Fix Decimal64.equals()
[yangtools.git] / yang / yang-common / src / main / java / org / opendaylight / yangtools / yang / common / Empty.java
1 /*
2  * Copyright (c) 2015 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.common;
9
10 import com.google.common.annotations.Beta;
11 import java.io.Serializable;
12 import org.opendaylight.yangtools.concepts.Immutable;
13
14 /**
15  * Dedicated singleton type for YANG's 'type empty' value.
16  *
17  * @author Robert Varga
18  */
19 @Beta
20 public final class Empty implements Immutable, Serializable {
21     private static final long serialVersionUID = 1L;
22     private static final Empty INSTANCE = new Empty();
23
24     private Empty() {
25
26     }
27
28     public static Empty getInstance() {
29         return INSTANCE;
30     }
31
32     @Override
33     public String toString() {
34         return "empty";
35     }
36
37     @SuppressWarnings("static-method")
38     private Object readResolve() {
39         return INSTANCE;
40     }
41 }