Class NullValue
- java.lang.Object
- org.springframework.cache.support.NullValue
- All Implemented Interfaces:
Serializable
public final class NullValue extends Object implements Serializable
Simple serializable class that serves as anull
replacement for cache stores which otherwise do not supportnull
values.- Since:
- 4.2.2
- Author:
- Juergen Hoeller
- See Also:
AbstractValueAdaptingCache
, Serialized Form
Field Summary
Fields Modifier and Type Field Description static Object
INSTANCE
The canonical representation of anull
replacement, as used by the default implementation ofAbstractValueAdaptingCache.toStoreValue(java.lang.Object)
/AbstractValueAdaptingCache.fromStoreValue(java.lang.Object)
.
Field Detail
INSTANCE
public static final Object INSTANCE
The canonical representation of anull
replacement, as used by the default implementation ofAbstractValueAdaptingCache.toStoreValue(java.lang.Object)
/AbstractValueAdaptingCache.fromStoreValue(java.lang.Object)
.- Since:
- 4.3.10