Interface MapAdaptable<K,V>

All Known Subinterfaces:
AttributeMap<V>, MutableAttributeMap<V>, ParameterMap, SharedAttributeMap<V>
All Known Implementing Classes:
LocalAttributeMap, LocalParameterMap, LocalSharedAttributeMap, MapAccessor, MockParameterMap

public interface MapAdaptable<K,V>
An object whose contents are capable of being exposed as a map.
Author:
Keith Donald
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns this object's contents as a Map.
  • Method Details

    • asMap

      Map<K,V> asMap()
      Returns this object's contents as a Map. The returned map may or may not be modifiable depending on this implementation.

      Warning: this operation may be called frequently; if so care should be taken so that the map contents (if calculated) be cached as appropriate.

      Returns:
      the object's contents as a map