Package org.apache.uima.internal.util
Class OrderedFsSet_array2.SubSet
java.lang.Object
org.apache.uima.internal.util.OrderedFsSet_array2.SubSet
- All Implemented Interfaces:
Iterable<TOP>,Collection<TOP>,NavigableSet<TOP>,Set<TOP>,SortedSet<TOP>
- Enclosing class:
OrderedFsSet_array2
This is used in a particular manner:
only used to create iterators over that subset
-- no insert/delete
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSubSet(Supplier<OrderedFsSet_array2> theSet, TOP fromElement, boolean fromInclusive, TOP toElement, boolean toInclusive) SubSet(Supplier<OrderedFsSet_array2> theSet, TOP fromElement, boolean fromInclusive, TOP toElement, boolean toInclusive, boolean doTest, Comparator<TOP> comparator) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanaddAll(Collection<? extends TOP> c) voidclear()Comparator<? super TOP> booleanbooleancontainsAll(Collection<?> c) first()booleanisEmpty()private booleanprivate booleanprivate booleanprivate booleanisInRangeHigher(TOP fs) private booleanisInRangeLower(TOP fs) private booleanprivate booleaniterator()last()pollLast()booleanbooleanremoveAll(Collection<?> c) booleanretainAll(Collection<?> c) intsize()private OrderedFsSet_array2theSet()Object[]toArray()<T> T[]toArray(T[] a1) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, streamMethods inherited from interface java.util.SortedSet
spliterator
-
Field Details
-
theSet
-
fromElement
-
toElement
-
fromInclusive
private final boolean fromInclusive -
toInclusive
private final boolean toInclusive -
firstPosInRange
private final int firstPosInRange -
lastPosInRange
private final int lastPosInRange -
firstElementInRange
-
lastElementInRange
-
sizeSubSet
private int sizeSubSet
-
-
Constructor Details
-
SubSet
SubSet(Supplier<OrderedFsSet_array2> theSet, TOP fromElement, boolean fromInclusive, TOP toElement, boolean toInclusive) -
SubSet
SubSet(Supplier<OrderedFsSet_array2> theSet, TOP fromElement, boolean fromInclusive, TOP toElement, boolean toInclusive, boolean doTest, Comparator<TOP> comparator)
-
-
Method Details
-
theSet
-
comparator
- Specified by:
comparatorin interfaceSortedSet<TOP>
-
first
-
last
-
size
public int size() -
isEmpty
public boolean isEmpty() -
contains
-
toArray
-
toArray
public <T> T[] toArray(T[] a1) -
add
-
remove
-
containsAll
- Specified by:
containsAllin interfaceCollection<TOP>- Specified by:
containsAllin interfaceSet<TOP>
-
addAll
-
retainAll
-
removeAll
-
clear
public void clear() -
lower
- Specified by:
lowerin interfaceNavigableSet<TOP>
-
floor
- Specified by:
floorin interfaceNavigableSet<TOP>
-
ceiling
- Specified by:
ceilingin interfaceNavigableSet<TOP>
-
higher
- Specified by:
higherin interfaceNavigableSet<TOP>
-
pollFirst
- Specified by:
pollFirstin interfaceNavigableSet<TOP>
-
pollLast
- Specified by:
pollLastin interfaceNavigableSet<TOP>
-
iterator
-
descendingSet
- Specified by:
descendingSetin interfaceNavigableSet<TOP>
-
descendingIterator
- Specified by:
descendingIteratorin interfaceNavigableSet<TOP>
-
subSet
public NavigableSet<TOP> subSet(TOP fromElement1, boolean fromInclusive1, TOP toElement1, boolean toInclusive1) - Specified by:
subSetin interfaceNavigableSet<TOP>
-
headSet
- Specified by:
headSetin interfaceNavigableSet<TOP>
-
tailSet
- Specified by:
tailSetin interfaceNavigableSet<TOP>
-
subSet
-
headSet
-
tailSet
-
isGtLast
-
isGeLast
-
isLtFirst
-
isLeFirst
-
isInRange
-
isInRangeLower
-
isInRangeHigher
-