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 TypeMethodDescriptionboolean
boolean
addAll
(Collection<? extends TOP> c) void
clear()
Comparator
<? super TOP> boolean
boolean
containsAll
(Collection<?> c) first()
boolean
isEmpty()
private boolean
private boolean
private boolean
private boolean
isInRangeHigher
(TOP fs) private boolean
isInRangeLower
(TOP fs) private boolean
private boolean
iterator()
last()
pollLast()
boolean
boolean
removeAll
(Collection<?> c) boolean
retainAll
(Collection<?> c) int
size()
private OrderedFsSet_array2
theSet()
Object[]
toArray()
<T> T[]
toArray
(T[] a1) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream
Methods 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:
comparator
in 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:
containsAll
in interfaceCollection<TOP>
- Specified by:
containsAll
in interfaceSet<TOP>
-
addAll
-
retainAll
-
removeAll
-
clear
public void clear() -
lower
- Specified by:
lower
in interfaceNavigableSet<TOP>
-
floor
- Specified by:
floor
in interfaceNavigableSet<TOP>
-
ceiling
- Specified by:
ceiling
in interfaceNavigableSet<TOP>
-
higher
- Specified by:
higher
in interfaceNavigableSet<TOP>
-
pollFirst
- Specified by:
pollFirst
in interfaceNavigableSet<TOP>
-
pollLast
- Specified by:
pollLast
in interfaceNavigableSet<TOP>
-
iterator
-
descendingSet
- Specified by:
descendingSet
in interfaceNavigableSet<TOP>
-
descendingIterator
- Specified by:
descendingIterator
in interfaceNavigableSet<TOP>
-
subSet
public NavigableSet<TOP> subSet(TOP fromElement1, boolean fromInclusive1, TOP toElement1, boolean toInclusive1) - Specified by:
subSet
in interfaceNavigableSet<TOP>
-
headSet
- Specified by:
headSet
in interfaceNavigableSet<TOP>
-
tailSet
- Specified by:
tailSet
in interfaceNavigableSet<TOP>
-
subSet
-
headSet
-
tailSet
-
isGtLast
-
isGeLast
-
isLtFirst
-
isLeFirst
-
isInRange
-
isInRangeLower
-
isInRangeHigher
-