Interface IndexedAttributeAccessor

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.Object getAttribute​(int index)
      Internal method for dynamic attribute support.
      java.lang.Object getAttribute​(int index, java.util.function.Supplier initializer)
      Internal method for dynamic attribute support.
      java.lang.Object removeAttribute​(int index)
      Internal method for dynamic attribute support.
      void setAttribute​(int index, java.lang.Object value)
      Internal method for dynamic attribute support.
    • Method Detail

      • getAttribute

        java.lang.Object getAttribute​(int index)
        Internal method for dynamic attribute support. Return the value of the attribute by index.
        Parameters:
        index - the attribute index
        Returns:
        the value of the attribute by index
      • getAttribute

        java.lang.Object getAttribute​(int index,
                                      java.util.function.Supplier initializer)
        Internal method for dynamic attribute support. Return the value of the attribute by index. If the attribute with such index is not set, set it to the default value, using the initializer, and return the default.
        Parameters:
        index - the attribute index
        initializer - the default value Supplier
        Returns:
        the value of the attribute by index
        Since:
        2.3.18
      • setAttribute

        void setAttribute​(int index,
                          java.lang.Object value)
        Internal method for dynamic attribute support. Set the attribute with the index to value.
        Parameters:
        index - the attribute index
        value - the value
      • removeAttribute

        java.lang.Object removeAttribute​(int index)
        Internal method for dynamic attribute support. Removes the attribute with the index and returns its previous value.
        Parameters:
        index - the attribute index
        Returns:
        the previous value associated with the attribute
        Since:
        2.3.18