Interface IWithAttributes

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      java.lang.Object get​(java.lang.String key)
      Returns the Object value to which the specified key is mapped, or null if this map contains no mapping for the key.
      java.util.Map<java.lang.String,​java.lang.Object> getAttributes()
      Returns the attributes
      <T> java.util.Collection<T> getCollection​(java.lang.String key)
      Returns the Collection value to which the specified key is mapped, or null if this map contains no Collection mapping for the key.
      GpxExtensionCollection getExtensions()
      Returns the extensions
      java.lang.String getString​(java.lang.String key)
      Returns the String value to which the specified key is mapped, or null if this map contains no String mapping for the key.
      default boolean hasExtensions()
      Returns whether the GpxExtensionCollection instance has been created yet, should be overridden.
      void put​(java.lang.String key, java.lang.Object value)
      Put a key / value pair as a new attribute.
    • Method Detail

      • get

        java.lang.Object get​(java.lang.String key)
        Returns the Object value to which the specified key is mapped, or null if this map contains no mapping for the key.
        Parameters:
        key - the key whose associated value is to be returned
        Returns:
        the value
      • getString

        java.lang.String getString​(java.lang.String key)
        Returns the String value to which the specified key is mapped, or null if this map contains no String mapping for the key.
        Parameters:
        key - the key whose associated value is to be returned
        Returns:
        the String value to which the specified key is mapped, or null if this map contains no String mapping for the key
      • getCollection

        <T> java.util.Collection<T> getCollection​(java.lang.String key)
        Returns the Collection value to which the specified key is mapped, or null if this map contains no Collection mapping for the key.
        Type Parameters:
        T - type of items
        Parameters:
        key - the key whose associated value is to be returned
        Returns:
        the Collection value to which the specified key is mapped, or null if this map contains no Collection mapping for the key
        Since:
        5502
      • put

        void put​(java.lang.String key,
                 java.lang.Object value)
        Put a key / value pair as a new attribute. Overrides key / value pair with the same key (if present).
        Parameters:
        key - the key
        value - the value
      • getAttributes

        java.util.Map<java.lang.String,​java.lang.Object> getAttributes()
        Returns the attributes
        Returns:
        the attributes