Package org.apache.uima.internal.util
Class OrderedFsSet_array2.SubSet
- java.lang.Object
-
- org.apache.uima.internal.util.OrderedFsSet_array2.SubSet
-
- All Implemented Interfaces:
java.lang.Iterable<TOP>,java.util.Collection<TOP>,java.util.NavigableSet<TOP>,java.util.Set<TOP>,java.util.SortedSet<TOP>
- Enclosing class:
- OrderedFsSet_array2
public static class OrderedFsSet_array2.SubSet extends java.lang.Object implements java.util.NavigableSet<TOP>
This is used in a particular manner: only used to create iterators over that subset -- no insert/delete
-
-
Field Summary
Fields Modifier and Type Field Description private TOPfirstElementInRangeprivate intfirstPosInRangeprivate TOPfromElementprivate booleanfromInclusiveprivate TOPlastElementInRangeprivate intlastPosInRangeprivate intsizeSubSet(package private) java.util.function.Supplier<OrderedFsSet_array2>theSetprivate TOPtoElementprivate booleantoInclusive
-
Constructor Summary
Constructors Constructor Description SubSet(java.util.function.Supplier<OrderedFsSet_array2> theSet, TOP fromElement, boolean fromInclusive, TOP toElement, boolean toInclusive)SubSet(java.util.function.Supplier<OrderedFsSet_array2> theSet, TOP fromElement, boolean fromInclusive, TOP toElement, boolean toInclusive, boolean doTest, java.util.Comparator<TOP> comparator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(TOP e)booleanaddAll(java.util.Collection<? extends TOP> c)TOPceiling(TOP fs)voidclear()java.util.Comparator<? super TOP>comparator()booleancontains(java.lang.Object o)booleancontainsAll(java.util.Collection<?> c)java.util.Iterator<TOP>descendingIterator()java.util.NavigableSet<TOP>descendingSet()TOPfirst()TOPfloor(TOP fs)java.util.SortedSet<TOP>headSet(TOP toElement1)java.util.NavigableSet<TOP>headSet(TOP toElement1, boolean inclusive)TOPhigher(TOP fs)booleanisEmpty()private booleanisGeLast(TOP fs)private booleanisGtLast(TOP fs)private booleanisInRange(TOP fs)private booleanisInRangeHigher(TOP fs)private booleanisInRangeLower(TOP fs)private booleanisLeFirst(TOP fs)private booleanisLtFirst(TOP fs)java.util.Iterator<TOP>iterator()TOPlast()TOPlower(TOP fs)TOPpollFirst()TOPpollLast()booleanremove(java.lang.Object o)booleanremoveAll(java.util.Collection<?> c)booleanretainAll(java.util.Collection<?> c)intsize()java.util.NavigableSet<TOP>subSet(TOP fromElement1, boolean fromInclusive1, TOP toElement1, boolean toInclusive1)java.util.SortedSet<TOP>subSet(TOP fromElement1, TOP toElement1)java.util.SortedSet<TOP>tailSet(TOP fromElement1)java.util.NavigableSet<TOP>tailSet(TOP fromElement1, boolean inclusive)private OrderedFsSet_array2theSet()java.lang.Object[]toArray()<T> T[]toArray(T[] a1)
-
-
-
Field Detail
-
theSet
final java.util.function.Supplier<OrderedFsSet_array2> theSet
-
fromElement
private final TOP fromElement
-
toElement
private final TOP toElement
-
fromInclusive
private final boolean fromInclusive
-
toInclusive
private final boolean toInclusive
-
firstPosInRange
private final int firstPosInRange
-
lastPosInRange
private final int lastPosInRange
-
firstElementInRange
private final TOP firstElementInRange
-
lastElementInRange
private final TOP lastElementInRange
-
sizeSubSet
private int sizeSubSet
-
-
Constructor Detail
-
SubSet
SubSet(java.util.function.Supplier<OrderedFsSet_array2> theSet, TOP fromElement, boolean fromInclusive, TOP toElement, boolean toInclusive)
-
SubSet
SubSet(java.util.function.Supplier<OrderedFsSet_array2> theSet, TOP fromElement, boolean fromInclusive, TOP toElement, boolean toInclusive, boolean doTest, java.util.Comparator<TOP> comparator)
-
-
Method Detail
-
theSet
private OrderedFsSet_array2 theSet()
-
comparator
public java.util.Comparator<? super TOP> comparator()
- Specified by:
comparatorin interfacejava.util.SortedSet<TOP>
-
size
public int size()
-
isEmpty
public boolean isEmpty()
-
contains
public boolean contains(java.lang.Object o)
-
toArray
public java.lang.Object[] toArray()
-
toArray
public <T> T[] toArray(T[] a1)
-
add
public boolean add(TOP e)
-
remove
public boolean remove(java.lang.Object o)
-
containsAll
public boolean containsAll(java.util.Collection<?> c)
-
addAll
public boolean addAll(java.util.Collection<? extends TOP> c)
-
retainAll
public boolean retainAll(java.util.Collection<?> c)
-
removeAll
public boolean removeAll(java.util.Collection<?> c)
-
clear
public void clear()
-
iterator
public java.util.Iterator<TOP> iterator()
-
descendingSet
public java.util.NavigableSet<TOP> descendingSet()
- Specified by:
descendingSetin interfacejava.util.NavigableSet<TOP>
-
descendingIterator
public java.util.Iterator<TOP> descendingIterator()
- Specified by:
descendingIteratorin interfacejava.util.NavigableSet<TOP>
-
subSet
public java.util.NavigableSet<TOP> subSet(TOP fromElement1, boolean fromInclusive1, TOP toElement1, boolean toInclusive1)
- Specified by:
subSetin interfacejava.util.NavigableSet<TOP>
-
headSet
public java.util.NavigableSet<TOP> headSet(TOP toElement1, boolean inclusive)
- Specified by:
headSetin interfacejava.util.NavigableSet<TOP>
-
tailSet
public java.util.NavigableSet<TOP> tailSet(TOP fromElement1, boolean inclusive)
- Specified by:
tailSetin interfacejava.util.NavigableSet<TOP>
-
isGtLast
private boolean isGtLast(TOP fs)
-
isGeLast
private boolean isGeLast(TOP fs)
-
isLtFirst
private boolean isLtFirst(TOP fs)
-
isLeFirst
private boolean isLeFirst(TOP fs)
-
isInRange
private boolean isInRange(TOP fs)
-
isInRangeLower
private boolean isInRangeLower(TOP fs)
-
isInRangeHigher
private boolean isInRangeHigher(TOP fs)
-
-