Class EnvironmentMapAdapter.EnvironmentEntry
java.lang.Object
org.springframework.geode.core.env.EnvironmentMapAdapter.EnvironmentEntry
- Enclosing class:
- EnvironmentMapAdapter
protected static class EnvironmentMapAdapter.EnvironmentEntry
extends Object
implements Map.Entry<String,String>
EnvironmentMapAdapter.EnvironmentEntry is a Map.Entry implementation mapping an Environment property (key)
to its value.- See Also:
-
Map.EntryEnvironment
-
Constructor Summary
ConstructorsConstructorDescriptionEnvironmentEntry(org.springframework.core.env.Environment environment, String key) Constructs a new instance ofEnvironmentMapAdapter.EnvironmentEntryinitialized with the givenEnvironmentandkey(property). -
Method Summary
-
Constructor Details
-
EnvironmentEntry
public EnvironmentEntry(@NonNull org.springframework.core.env.Environment environment, @NonNull String key) Constructs a new instance ofEnvironmentMapAdapter.EnvironmentEntryinitialized with the givenEnvironmentandkey(property).- Parameters:
environment-Environmentto which thekeybelongs; must not be null.key-Stringreferring to the property from theEnvironment; must not be null.- Throws:
IllegalArgumentException- if theEnvironmentor thekeyis null.- See Also:
-
Environment
-
-
Method Details
-
getEnvironment
@NonNull protected org.springframework.core.env.Environment getEnvironment()Returns the configuredEnvironmentto which thisMap.Entrybelongs.- Returns:
- the configured
Environment; never null. - See Also:
-
Environment
-
getKey
Gets thekey(property) of thisMap.Entry. -
getValue
-
setValue
-