public class ImmutableFragments extends Object implements Iterable<ImmutableFragment>
| Modifier and Type | Class and Description |
|---|---|
class |
ImmutableFragments.FragmentsIterator
Итератор по фрагментам
|
| Modifier and Type | Field and Description |
|---|---|
protected static xyz.cofe.collection.Func2<ImmutableFragment,Long,Long> |
defCreateFragment |
protected xyz.cofe.collection.Func2<ImmutableFragments,ImmutableFragment,ImmutableFragment> |
defIntersecResolver |
protected static Comparator<ImmutableFragment> |
defSorter |
protected ImmutableFragment[] |
fragments |
protected Map<ImmutableFragment,Set<ImmutableFragment>> |
intersections |
protected ImmutableFragments |
sorted |
protected static Comparator<ImmutableFragment> |
sorterByBegin |
protected static Comparator<ImmutableFragment> |
sorterByInstanceID |
protected static Comparator<ImmutableFragment> |
sorterBySize |
xyz.cofe.collection.Func2<ImmutableFragments,ImmutableFragment,ImmutableFragment> |
unionIntersecResolver
Решение пересечения обьеднением
|
protected ImmutableFragments |
zeroSize |
| Constructor and Description |
|---|
ImmutableFragments()
Конструктор по умолч
|
ImmutableFragments(ImmutableFragment[] arr)
Конструктор из фрагментов
|
ImmutableFragments(ImmutableFragments source)
Конструктор копирования
|
ImmutableFragments(Iterable<ImmutableFragment> arr)
Конструктор из фрагментов
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorprotected ImmutableFragment[] fragments
protected Map<ImmutableFragment,Set<ImmutableFragment>> intersections
protected ImmutableFragments zeroSize
protected static final Comparator<ImmutableFragment> sorterByBegin
protected static final Comparator<ImmutableFragment> sorterBySize
protected static final Comparator<ImmutableFragment> sorterByInstanceID
protected static final Comparator<ImmutableFragment> defSorter
protected ImmutableFragments sorted
protected static final xyz.cofe.collection.Func2<ImmutableFragment,Long,Long> defCreateFragment
public final xyz.cofe.collection.Func2<ImmutableFragments,ImmutableFragment,ImmutableFragment> unionIntersecResolver
protected final xyz.cofe.collection.Func2<ImmutableFragments,ImmutableFragment,ImmutableFragment> defIntersecResolver
public ImmutableFragments()
public ImmutableFragments(ImmutableFragment[] arr)
arr - фрагментыpublic ImmutableFragments(Iterable<ImmutableFragment> arr)
arr - фрагментыpublic ImmutableFragments(ImmutableFragments source)
source - образецpublic Iterator<ImmutableFragment> iterator()
iterator in interface Iterable<ImmutableFragment>public ImmutableFragments copy()
public ImmutableFragments copyWith(ImmutableFragment[] arr)
public ImmutableFragment[] getFragments()
public ImmutableFragments setFragments(ImmutableFragment[] arr)
public ImmutableFragment get(int index)
public int getCount()
public ImmutableFragments set(int index, ImmutableFragment f)
public ImmutableFragments remove(int index)
protected boolean isEquals(ImmutableFragment f1, ImmutableFragment f2)
public ImmutableFragments remove(ImmutableFragment fragment)
public ImmutableFragments removeSameRange(ImmutableFragment fragment)
public int indexOf(ImmutableFragment f)
public ImmutableFragments setCount(int count)
public ImmutableFragments add(ImmutableFragment f)
public ImmutableFragments addAll(Iterable<ImmutableFragment> fitr)
public void visitEachEachWithoutPosition(xyz.cofe.collection.Func2<Object,ImmutableFragment,ImmutableFragment> visitor, xyz.cofe.collection.Func2<Boolean,ImmutableFragment,ImmutableFragment> equals)
visitor - Функция приемник парequals - Функция сравнения на равенствоpublic Map<ImmutableFragment,Set<ImmutableFragment>> findIntersections()
public ImmutableFragments remove(Iterable<ImmutableFragment> fragments)
fragments - фрагментыpublic ImmutableFragments removeSameRange(Iterable<ImmutableFragment> fragments)
fragments - фрагментыpublic ImmutableFragments findZeroSize()
public TreeSet<ImmutableFragment> sort(Comparator<ImmutableFragment> comparator)
public ImmutableFragments sort()
public ImmutableFragments findHoles(long begin, long end)
public ImmutableFragments findHoles(long begin, long end, xyz.cofe.collection.Func2<ImmutableFragment,Long,Long> createFragment)
begin - Начало диапазонаend - Конец диапазона исклcreateFragment - Создание фрагментаpublic ImmutableFragments removeIntersections()
public ImmutableFragments removeIntersections(xyz.cofe.collection.Func2<ImmutableFragments,ImmutableFragment,ImmutableFragment> intersecResolver)
intersecResolver - способ решения пересеченийCopyright © 2017. All rights reserved.