- 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 (nt.gocha@gmail.com)
-
-
Constructor Summary
Constructors Constructor Description SortInsertDefault()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidprofBeginInsert()protected voidprofEndInsert()protected booleanprofiling()intsortInsert(Container container, Element item, Comparator<Element> comp, int begin, int endex)Вставка сортировкой-
Methods inherited from class xyz.cofe.sort.SortInsert
createForList, get, insert
-
-
-
-
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:
sortInsertin classSortInsert<Container,Element>- Parameters:
container- контейнерitem- элементcomp- компараторbegin- начало диапазона вставкиendex- конец диапазона вставки- Returns:
- позиция в которую произведена вставка
-
-