code: public Map<String, String> toMap() {
      Map<String, String> map = new HashMap<>(size());
  
      for (String propertyName : this) {
        map.put(propertyName, get(propertyName));
      }
  
      return map;
    }
docs: Converts this {@link PropertiesAdapter} into a {@link Map}.
  
  @return a {@link Map} containing the properties and values of this {@link PropertiesAdapter}.
  @see java.util.Map
  @see #iterator()
  @see #get(String)