Class ModelMerger.MergingList<V>

  • Type Parameters:
    V -
    All Implemented Interfaces:
    java.lang.Iterable<V>, java.util.Collection<V>, java.util.List<V>
    Enclosing class:
    ModelMerger

    private static class ModelMerger.MergingList<V>
    extends java.util.AbstractList<V>
    Merging list
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private ModelMerger.KeyComputer<V> keyComputer  
      private java.util.List<V> list  
      private java.util.Map<java.lang.Object,​V> map  
      • 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, V element)  
      private java.util.List<V> asList()  
      boolean contains​(java.lang.Object o)  
      V get​(int index)  
      java.util.Iterator<V> iterator()  
      (package private) void mergeAll​(java.util.Collection<V> vs, ModelMerger.Remapping<V> remapping)  
      V remove​(int index)  
      int size()  
      • Methods inherited from class java.util.AbstractList

        add, addAll, clear, equals, hashCode, indexOf, lastIndexOf, listIterator, listIterator, removeRange, set, subList
      • Methods inherited from class java.util.AbstractCollection

        addAll, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
      • Methods inherited from class java.lang.Object

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

        parallelStream, removeIf, stream, toArray
      • Methods inherited from interface java.lang.Iterable

        forEach
      • Methods inherited from interface java.util.List

        addAll, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
    • Field Detail

      • map

        private java.util.Map<java.lang.Object,​V> map
      • list

        private java.util.List<V> list
    • Method Detail

      • iterator

        public java.util.Iterator<V> iterator()
        Specified by:
        iterator in interface java.util.Collection<V>
        Specified by:
        iterator in interface java.lang.Iterable<V>
        Specified by:
        iterator in interface java.util.List<V>
        Overrides:
        iterator in class java.util.AbstractList<V>
      • contains

        public boolean contains​(java.lang.Object o)
        Specified by:
        contains in interface java.util.Collection<V>
        Specified by:
        contains in interface java.util.List<V>
        Overrides:
        contains in class java.util.AbstractCollection<V>
      • asList

        private java.util.List<V> asList()
      • add

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

        public V remove​(int index)
        Specified by:
        remove in interface java.util.List<V>
        Overrides:
        remove in class java.util.AbstractList<V>
      • get

        public V get​(int index)
        Specified by:
        get in interface java.util.List<V>
        Specified by:
        get in class java.util.AbstractList<V>
      • size

        public int size()
        Specified by:
        size in interface java.util.Collection<V>
        Specified by:
        size in interface java.util.List<V>
        Specified by:
        size in class java.util.AbstractCollection<V>