Class NullValue
- java.lang.Object
-
- org.infinispan.spring.common.provider.NullValue
-
- All Implemented Interfaces:
java.io.Serializable,org.springframework.cache.Cache.ValueWrapper
public final class NullValue extends java.lang.Object implements org.springframework.cache.Cache.ValueWrapper, java.io.SerializableA placeholder value for storing null in a cache.- Since:
- 5.3
- Author:
- Olaf Bergner
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.Objectget()Always returns null.inthashCode()
-
-
-
Field Detail
-
NULL
public static final NullValue NULL
-
-
Method Detail
-
get
public java.lang.Object get()
Always returns null.- Specified by:
getin interfaceorg.springframework.cache.Cache.ValueWrapper- Returns:
- null
- See Also:
Cache.ValueWrapper.get()
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-