Class VBStyleCollection<E,​K>

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<E>, java.util.Collection<E>, java.util.List<E>, java.util.RandomAccess

    public class VBStyleCollection<E,​K>
    extends java.util.ArrayList<E>
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class java.util.AbstractList

        modCount
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(int index, E element)  
      boolean add​(E element)  
      boolean addAll​(java.util.Collection<? extends E> c)  
      void addAllWithKey​(java.util.Collection<E> elements, java.util.Collection<K> keys)  
      void addWithKey​(E element, K key)  
      void addWithKeyAndIndex​(int index, E element, K key)  
      void clear()  
      VBStyleCollection<E,​K> clone()  
      boolean containsKey​(K key)  
      int getIndexByKey​(K key)  
      K getKey​(int index)  
      E getLast()  
      java.util.ArrayList<K> getLstKeys()  
      E getWithKey​(K key)  
      E putWithKey​(E element, K key)  
      E remove​(int index)  
      boolean remove​(java.lang.Object element)  
      void removeWithKey​(K key)  
      void setLstKeys​(java.util.ArrayList<K> lstKeys)  
      void setMap​(java.util.HashMap<K,​java.lang.Integer> map)  
      java.lang.String toStringVb()  
      • Methods inherited from class java.util.ArrayList

        addAll, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
      • Methods inherited from class java.util.AbstractCollection

        containsAll, toString
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Collection

        parallelStream, stream, toArray
      • Methods inherited from interface java.util.List

        containsAll
    • Constructor Detail

      • VBStyleCollection

        public VBStyleCollection()
      • VBStyleCollection

        public VBStyleCollection​(int initialCapacity)
    • Method Detail

      • add

        public boolean add​(E element)
        Specified by:
        add in interface java.util.Collection<E>
        Specified by:
        add in interface java.util.List<E>
        Overrides:
        add in class java.util.ArrayList<E>
      • remove

        public boolean remove​(java.lang.Object element)
        Specified by:
        remove in interface java.util.Collection<E>
        Specified by:
        remove in interface java.util.List<E>
        Overrides:
        remove in class java.util.ArrayList<E>
      • addAll

        public boolean addAll​(java.util.Collection<? extends E> c)
        Specified by:
        addAll in interface java.util.Collection<E>
        Specified by:
        addAll in interface java.util.List<E>
        Overrides:
        addAll in class java.util.ArrayList<E>
      • addAllWithKey

        public void addAllWithKey​(java.util.Collection<E> elements,
                                  java.util.Collection<K> keys)
      • addWithKey

        public void addWithKey​(E element,
                               K key)
      • putWithKey

        public E putWithKey​(E element,
                            K key)
      • add

        public void add​(int index,
                        E element)
        Specified by:
        add in interface java.util.List<E>
        Overrides:
        add in class java.util.ArrayList<E>
      • addWithKeyAndIndex

        public void addWithKeyAndIndex​(int index,
                                       E element,
                                       K key)
      • removeWithKey

        public void removeWithKey​(K key)
      • remove

        public E remove​(int index)
        Specified by:
        remove in interface java.util.List<E>
        Overrides:
        remove in class java.util.ArrayList<E>
      • getWithKey

        public E getWithKey​(K key)
      • getIndexByKey

        public int getIndexByKey​(K key)
      • getLast

        public E getLast()
      • containsKey

        public boolean containsKey​(K key)
      • clear

        public void clear()
        Specified by:
        clear in interface java.util.Collection<E>
        Specified by:
        clear in interface java.util.List<E>
        Overrides:
        clear in class java.util.ArrayList<E>
      • clone

        public VBStyleCollection<E,​K> clone()
        Overrides:
        clone in class java.util.ArrayList<E>
      • setMap

        public void setMap​(java.util.HashMap<K,​java.lang.Integer> map)
      • getKey

        public K getKey​(int index)
      • getLstKeys

        public java.util.ArrayList<K> getLstKeys()
      • setLstKeys

        public void setLstKeys​(java.util.ArrayList<K> lstKeys)
      • toStringVb

        public java.lang.String toStringVb()