2 * Copyright (c) 2015 Pantheon Technologies s.r.o. and others. All rights reserved.
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
8 package org.opendaylight.yangtools.yang.common;
10 import com.google.common.annotations.Beta;
11 import java.io.Serializable;
12 import org.eclipse.jdt.annotation.NonNullByDefault;
13 import org.opendaylight.yangtools.concepts.Immutable;
16 * Dedicated singleton type for YANG's 'type empty' value.
18 * @author Robert Varga
22 public final class Empty implements Immutable, Serializable {
23 private static final long serialVersionUID = 1L;
24 private static final Empty INSTANCE = new Empty();
31 * Return the singleton {@link Empty} value.
33 * @return Empty value.
34 * @deprecated Use {@link #value()} instead.
36 @Deprecated(since = "7.0.10", forRemoval = true)
37 public static Empty getInstance() {
42 * Return the singleton {@link Empty} value.
44 * @return Empty value.
46 public static Empty value() {
51 public String toString() {
55 @SuppressWarnings("static-method")
56 private Object readResolve() {