Package xyz.cofe.sort

Class SortInsertDefault<Container,​Element>

java.lang.Object
xyz.cofe.sort.SortInsert<Container,​Element>
xyz.cofe.sort.SortInsertDefault<Container,​Element>
Direct Known Subclasses:
SortInsertProfiling

public abstract class SortInsertDefault<Container,​Element>
extends SortInsert<Container,​Element>
Вставка в контейнер значения по умолчанию
Author:
Kamnev Georgiy ([email protected])
  • Constructor Summary

    Constructors 
    Constructor Description
    SortInsertDefault()  
  • Method Summary

    Modifier and Type Method Description
    protected void profBeginInsert()  
    protected void profEndInsert()  
    protected boolean profiling()  
    int sortInsert​(Container container, Element item, java.util.Comparator<Element> comp, int begin, int endex)
    Вставка сортировкой

    Methods inherited from class xyz.cofe.sort.SortInsert

    createForList, get, insert

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • profBeginInsert

      protected void profBeginInsert()
    • profEndInsert

      protected void profEndInsert()
    • profiling

      protected boolean profiling()
    • sortInsert

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