Top Description Fields Constructors Methods
com.typesafe.config.impl

pack-priv final Class ConfigNull

extends AbstractConfigValue
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Imports
java.io.ObjectStreamException, .Serializable, com.typesafe.config.ConfigOrigin, .ConfigRenderOptions, .ConfigValueType

This exists because sometimes null is not the same as missing. Specifically, if a value is set to null we can give a better error message (indicating where it was set to null) in case someone asks for the value. Also, null overrides values set "earlier" in the search path, while missing values do not.

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
protected ConfigNull
protected void
pack-priv String
public Object
unwrapped()

Implements com.typesafe.config.ConfigValue.unwrapped.

Returns the value as a plain Java boxed value, that is, a String, Number, Boolean, Map<String,Object>, List<Object>, or null, matching the valueType() of this ConfigValue.

public ConfigValueType
valueType()

Implements com.typesafe.config.ConfigValue.valueType.

The ConfigValueType of the value; matches the JSON type schema.

private Object
Inherited from com.typesafe.config.impl.AbstractConfigValue:
appendHiddenEnvVariableValueatKeyatKeyatPathatPathcanEqualconstructDelayedMergeequalshasDescendantInListhashCodehideEnvVariableValueignoresFallbacksindentmergedWithNonObjectmergedWithNonObjectmergedWithObjectmergedWithObjectmergedWithTheUnmergeablemergedWithTheUnmergeableoriginrelativizedrenderrenderrenderreplaceChildInListrequireNotIgnoringFallbacksresolveStatusresolveSubstitutionstoFallbackValuetoStringwithFallbackwithFallbacksIgnoredwithOrigin

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Constructor Detail

ConfigNullback to summary
pack-priv ConfigNull(ConfigOrigin origin)

Method Detail

newCopyback to summary
protected ConfigNull newCopy(ConfigOrigin origin)

Implements abstract com.typesafe.config.impl.AbstractConfigValue.newCopy.

Annotations
@Override
renderback to summary
protected void render(StringBuilder sb, int indent, boolean atRoot, ConfigRenderOptions options)

Overrides com.typesafe.config.impl.AbstractConfigValue.render.

Annotations
@Override
transformToStringback to summary
pack-priv String transformToString()

Overrides com.typesafe.config.impl.AbstractConfigValue.transformToString.

Annotations
@Override
unwrappedback to summary
public Object unwrapped()

Implements com.typesafe.config.ConfigValue.unwrapped.

Doc from com.typesafe.config.ConfigValue.unwrapped.

Returns the value as a plain Java boxed value, that is, a String, Number, Boolean, Map<String,Object>, List<Object>, or null, matching the valueType() of this ConfigValue. If the value is a ConfigObject or ConfigList, it is recursively unwrapped.

Returns:Object

a plain Java value corresponding to this ConfigValue

Annotations
@Override
valueTypeback to summary
public ConfigValueType valueType()

Implements com.typesafe.config.ConfigValue.valueType.

Doc from com.typesafe.config.ConfigValue.valueType.

The ConfigValueType of the value; matches the JSON type schema.

Returns:ConfigValueType

value's type

Annotations
@Override
writeReplaceback to summary
private Object writeReplace() throws ObjectStreamException