public class StandardNullValueProvider extends AbstractNullValueProvider implements NullValueProvider
| Constructor and Description |
|---|
StandardNullValueProvider() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getBooleanValue()
Returns
false. |
double |
getDoubleValue()
Returns
0.0. |
int |
getIntValue()
Returns
0. |
long |
getLongValue()
Returns
0L. |
String |
getStringValue()
Returns an empty
String. |
static NullValueProvider |
instance()
Returns pre-built, shared instance for this
NullValueProvider. |
isNull, isNull, isNull, isNull, isNullpublic static NullValueProvider instance()
NullValueProvider.StandardNullValueProvider instancepublic boolean getBooleanValue()
false.getBooleanValue in interface NullValueProviderbooleanpublic int getIntValue()
0.getIntValue in interface NullValueProviderintpublic long getLongValue()
0L.getLongValue in interface NullValueProviderlongpublic double getDoubleValue()
0.0.getDoubleValue in interface NullValueProviderdoublepublic String getStringValue()
String.getStringValue in interface NullValueProviderStringCopyright © 2021. All rights reserved.