de.weltraumschaf.commons.token.Null Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of shell Show documentation
Show all versions of shell Show documentation
Utilities for creating more complex shell commands with subcommands. It provides easy ability to
parse the users command line input.
/*
* LICENSE
*
* "THE BEER-WARE LICENSE" (Revision 43):
* "Sven Strittmatter" wrote this file.
* As long as you retain this notice you can do whatever you want with
* this stuff. If we meet some day, and you think this stuff is worth it,
* you can buy me a non alcohol-free beer in return.
*
* Copyright (C) 2012 "Sven Strittmatter"
*/
package de.weltraumschaf.commons.token;
import net.jcip.annotations.ThreadSafe;
/**
* Represents a null value.
*
* Used instead of {@code null} to prevent null pointer exceptions.
* Implemented as singleton w/o any state, so thread safe.
*
*
* @since 1.0.0
* @version $Id: $Id
*/
@ThreadSafe
public final class Null {
/**
* The only reusable instance.
*/
public static final Null NULL = new Null();
/**
* Hidden to prevent multiple instances.
*/
private Null() {
super();
}
}