Class NO_VALUE_HOLDER
- java.lang.Object
-
- de.uplanet.lucy.server.dataobjects.NO_VALUE_HOLDER
-
@ConstantClass public final class NO_VALUE_HOLDER extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static IValueHolder<?>
INSTANCE
An instance of an immutable value holder.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> IValueHolder<T>
instance()
ReturnINSTANCE
with the correct generic type.
-
-
-
Field Detail
-
INSTANCE
public static final IValueHolder<?> INSTANCE
An instance of an immutable value holder.All method calls on the
IValueHolder
interface of this instance will throw anjava.lang.UnsupportedOperationException
to enforce fail-fast programming style.
-
-
Method Detail
-
instance
public static <T> IValueHolder<T> instance()
ReturnINSTANCE
with the correct generic type.- Returns:
- Always
INSTANCE
.
-
-