Class EnvironmentMapAdapter.EnvironmentEntry

java.lang.Object
org.springframework.geode.core.env.EnvironmentMapAdapter.EnvironmentEntry
All Implemented Interfaces:
Map.Entry<String,String>
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:
  • Constructor Details

    • EnvironmentEntry

      public EnvironmentEntry(@NonNull org.springframework.core.env.Environment environment, @NonNull String key)
      Constructs a new instance of EnvironmentMapAdapter.EnvironmentEntry initialized with the given Environment and key (property).
      Parameters:
      environment - Environment to which the key belongs; must not be null.
      key - String referring to the property from the Environment; must not be null.
      Throws:
      IllegalArgumentException - if the Environment or the key is null.
      See Also:
      • Environment
  • Method Details

    • getEnvironment

      @NonNull protected org.springframework.core.env.Environment getEnvironment()
      Returns the configured Environment to which this Map.Entry belongs.
      Returns:
      the configured Environment; never null.
      See Also:
      • Environment
    • getKey

      @NonNull public String getKey()
      Gets the key (property) of this Map.Entry.
      Specified by:
      getKey in interface Map.Entry<String,String>
      Returns:
      the key (property) of this Map.Entry.
    • getValue

      @Nullable public String getValue()
      Gets the value mapped to the key (property) in this Map.Entry (Environment).
      Specified by:
      getValue in interface Map.Entry<String,String>
      Returns:
      the value mapped to the key (property) in this Map.Entry (Environment).
      See Also:
    • setValue

      public String setValue(String value)
      Specified by:
      setValue in interface Map.Entry<String,String>