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();
30 public static Empty getInstance() {
35 public String toString() {
39 @SuppressWarnings("static-method")
40 private Object readResolve() {