Package xyz.cofe.sort

Class SortInsertDefault<Container,​Element>

  • Direct Known Subclasses:
    SortInsertProfiling

    public abstract class SortInsertDefault<Container,​Element>
    extends SortInsert<Container,​Element>
    Вставка в контейнер значения по умолчанию
    Author:
    Kamnev Georgiy (nt.gocha@gmail.com)
    • Constructor Detail

      • SortInsertDefault

        public SortInsertDefault()
    • Method Detail

      • profBeginInsert

        protected void profBeginInsert()
      • profEndInsert

        protected void profEndInsert()
      • profiling

        protected boolean profiling()
      • sortInsert

        public int sortInsert​(Container container,
                              Element item,
                              Comparator<Element> comp,
                              int begin,
                              int endex)
        Вставка сортировкой
        Specified by:
        sortInsert in class SortInsert<Container,​Element>
        Parameters:
        container - контейнер
        item - элемент
        comp - компаратор
        begin - начало диапазона вставки
        endex - конец диапазона вставки
        Returns:
        позиция в которую произведена вставка