|
Spring Data Core | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.data.repository.util.NullableWrapper
public class NullableWrapper
Simple value object to wrap a nullable delegate. Used to be able to write Converter implementations that
convert null into an object of some sort.
QueryExecutionConverters| Constructor Summary | |
|---|---|
NullableWrapper(Object value)
Creates a new NullableWrapper for the given value. |
|
| Method Summary | |
|---|---|
Object |
getValue()
Returns the backing valie |
Class<?> |
getValueType()
Returns the type of the contained value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NullableWrapper(Object value)
NullableWrapper for the given value.
value - can be null.| Method Detail |
|---|
public Class<?> getValueType()
Object in case the value is null.
public Object getValue()
|
Spring Data Core | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||