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.Entry
Environment
-
Constructor Summary
ConstructorDescriptionEnvironmentEntry
(org.springframework.core.env.Environment environment, String key) Constructs a new instance ofEnvironmentMapAdapter.EnvironmentEntry
initialized with the givenEnvironment
andkey
(property). -
Method Summary
-
Constructor Details
-
EnvironmentEntry
public EnvironmentEntry(@NonNull org.springframework.core.env.Environment environment, @NonNull String key) Constructs a new instance ofEnvironmentMapAdapter.EnvironmentEntry
initialized with the givenEnvironment
andkey
(property).- Parameters:
environment
-Environment
to which thekey
belongs; must not be null.key
-String
referring to the property from theEnvironment
; must not be null.- Throws:
IllegalArgumentException
- if theEnvironment
or thekey
is null.- See Also:
-
Environment
-
-
Method Details
-
getEnvironment
@NonNull protected org.springframework.core.env.Environment getEnvironment()Returns the configuredEnvironment
to which thisMap.Entry
belongs.- Returns:
- the configured
Environment
; never null. - See Also:
-
Environment
-
getKey
Gets thekey
(property) of thisMap.Entry
. -
getValue
-
setValue
- Specified by:
setValue
in interfaceMap.Entry<String,
String> - Throws:
UnsupportedOperationException
-