Class ListMap<K,​T>

    • Constructor Detail

      • ListMap

        public ListMap​(KeyMapper<K,​T> keyMapper,
                       int addMode)
      • ListMap

        public ListMap​(KeyMapper<K,​T> keyMapper)
      • ListMap

        public ListMap​(int addMode)
      • ListMap

        public ListMap()
        Default constructor, create an Empty ListMap
    • Method Detail

      • getKeyMapper

        public KeyMapper<K,​T> getKeyMapper()
        Get the KeyMapper for this ListMap
        Returns:
        the KeyMapper
      • setKeyMapper

        public void setKeyMapper​(KeyMapper<K,​T> keyMapper)
        Set the KeyMapper for this ListMap
        Parameters:
        keyMapper - the KeyMapper
      • add

        public void add​(int index,
                        T element)
        Specified by:
        add in interface List<K>
        Overrides:
        add in class AbstractList<T>
      • set

        public T set​(int index,
                     T element)
        Specified by:
        set in interface List<K>
        Overrides:
        set in class AbstractList<T>
      • get

        public T get​(Object key)
        Get an object by key Delegate for getMap().get().
        Parameters:
        key - the key
        Returns:
        the value
      • getProperty

        public T getProperty​(K key)
        Alias for get(key)
        Parameters:
        key - the key
        Returns:
        the value
      • getKeyIterator

        public Iterator<K> getKeyIterator()
        Return iteration over Keys
        Returns:
        iterations over keys
      • getMap

        public Map<K,​T> getMap()
        The list underlying Map
        Returns:
        The key/value Map for this ListMap
      • getAddMode

        public int getAddMode()
        Get the object adding policy for this List.
        Returns:
        the AddMode
      • setAddMode

        public void setAddMode​(int addMode)
        Set the object adding policy for this List ListMap has an underlying Map, the policy states of duplicate keys are allowed
        Parameters:
        addMode - the policy